login about faq

I am trying to get the email address of the recipient. Is there an easier way than parsing the header?

asked May 13 '13 at 16:21

Bob_R's gravatar image

Bob_R
1111


A good place to start would be to review the reference documentation for the Email object:

http://www.chilkatsoft.com/refdoc/csEmailRef.html

You'll find the following properties: NumTo, NumCC

You'll also find the following methods: GetTo, GetToName, GetToAddr, GetCC, GetCcName, and GetCcAddr.

You would loop from 0 to NumTo-1 (and/or 0 to NumCC-1) calling the Get method for each loop iteration to get the Nth name or address.

link

answered May 13 '13 at 16:36

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Thanks! I was looking at the ActiveX documentation (http://www.chilkatsoft.com/refdoc/xChilkatEmailBundle2Ref.html) which is what I am using with Visual Foxpro. It doesn't mention most of the methods and properties the C# page does.

link

answered May 13 '13 at 16:45

Bob_R's gravatar image

Bob_R
1111

Look at the documentation for the Email object, not the EmailBundle object...

(May 13 '13 at 17:12) chilkat ♦♦

When I check "getto" values, I get blanks but checking "getheaderfield("TO") returns the to value. Is this related to the format of the email?

Thanks.

link

answered May 14 '13 at 11:33

Bob_R's gravatar image

Bob_R
1111

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×60

Asked: May 13 '13 at 16:21

Seen: 1,147 times

Last updated: May 14 '13 at 11:33

powered by OSQA