login about faq

When I use the SendEmail method with Chilkat MailMan how can I get the Message-ID of the sent mail? I see it in the SmtpSessionLog, but can I get it by reading a property of the ocx? I want to track the message sent for any reply or if the recipient opened the email (smart phone).

asked Aug 08 at 17:45

chilkat's gravatar image

chilkat ♦♦

The Message-ID is an email header field, but with one special consideration. The description of the MailMan.AutoGenMessageId in the online reference documentation explains how it's special:

(The AutoGenMessageId property) Controls whether a unique Message-ID header is auto-generated for each email sent.

The Message-ID header field should contain a unique message ID for each email that is sent. The default behavior is to auto-generate this header field at the time the message is sent. This makes it easier for the same email object to be re-used. If the message ID is not unique, the SMTP server may consider the message to be a duplicate of one that has already been sent, and may discard it without sending. This property controls whether message IDs are automatically generated. If auto-generation is turned on (true), the value returned by GetHeaderField("Message-ID") (prior to sending) will not reflect the actual message ID that gets sent with the email. Your application can call GetHeaderField("Message-ID") after sending to get the Message-ID sent in the email.

To turn off automatic Message-ID generation, set this property to false.

You can get the Message-ID of the email after calling SendEmail by getting the "Message-ID" header by calling emailObject.GetHeaderField("Message-ID")


answered Aug 08 at 17:49

chilkat's gravatar image

chilkat ♦♦

edited Aug 08 at 17:51

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Aug 08 at 17:45

Seen: 118 times

Last updated: Aug 08 at 17:51

powered by OSQA