Re: Reply with custom form & selected data from message body

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks Sue for the pointers and links, I'm almost there!

The example at
http://www.outlookcode.com/threads.aspx?forumid=2&messageid=696 is very close
to what I'm dealing with except the data value attached to each label is on
the line below it - see example...

<snip>
Q. Email Address
A. John_Smith@xxxxxxxxxxxxxx

Q. First Name
A. John

Q. Coffee Type
A. Arabica
<snip>

I can successfully locate & return the Email Address label, how do I go the
next step and get the code to locate the label but return the line below it
for trimming and insertion into my reply email?

TIA -Greg

"Sue Mosher [MVP]" wrote:

You might find this code sample useful:
http://www.outlookcode.com/codedetail.aspx?id=89 It shows how to parse a
structured text block as your scenario describes.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"GregoryL.[AITI]" <GregoryL.[AITI]@discussions.microsoft.com> wrote in
message news:2C54185E-4A80-4943-AC42-B9E7C1D7EE8B@xxxxxxxxxxxxxxxx
Hi everyone,

I receive a lot of plain text emails that contain data in a preset format
that I would like to auto reply with a custom form I have built. I would
like
to know if I can locate and use certain values from the original message
in
my reply (e.g. original msg contains as plain text First Name: John and
Coffee Type: Arabica. Can I locate John and Arabica in the original msg
and
populate those values in my auto reply form -> Hi John, thanks for your
enquiry about our Arabica coffee range...)

It seems straight forward enough yet any help or pointers in the right
direction would be greatly appreciated.


TIA

Greg






.



Relevant Pages

  • Re: agile/xp question (formal analysis)
    ... >decision was made and doesnt know John and Sue. ... So John and Sue surely need to communicate what they did in some ... We design software to minimize communication across module boundaries. ...
    (comp.object)
  • Re: My predictions for Spidey and _Civil War_
    ... Macbeth and Lady MacBeth, Othello and Desdemona, King of ... Denmark and Gertrude, Gertrude and Claudius, John and ... Or Reed and Sue, Ralph and Sue, Nick and Nora, Lois and Clark, ...
    (rec.arts.comics.marvel.universe)
  • Re: *Ping SFB2s
    ... Thank you Sue. ... Personally, given the big game and bird hunting that John, Andy, ... for a SFB2er chat at the Moose Lodge? ... resetting my meter due to non-nicotine cigarette backslides. ...
    (alt.support.stop-smoking)
  • Re: Curly soon to be out of a job
    ... John I am very sure that Carly is a very smart woman. ... brief visit here at zko so I have no real opinion of her so I will not ... Sue ... >> respond, he understood and liked technology, he was a nice man. ...
    (comp.os.vms)
  • Re: help developing function
    ... > Thanks John, ... I now have to write a comparison function that when ... Where megapixels are the same, ... The logic looks fine but because a and b are pointers you must say ...
    (comp.lang.cpp)