Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

December 17, 2007

AutoGenMessageId - Generates unique Message IDs

Question:
I found out the mailman will change Message-ID when sending email out. I just wonder if there is a way to keep the original Message-ID or assign a new one.

Answer:
Set the AutoGenMessageId property = false (0).

The reason for the automatic Message-ID generation is because many SMTP servers will consider emails having the same Message-IDs as duplicates, and they are silently dropped. This causes confusion because the programmer cannot understand what happened to the email — everything seems to go perfectly without error, but the email is never delivered. Ensuring that each email has a unique message ID prevents this problem.

You may set your own Message-ID header field by (1) turn off AutoGenMessageId, and (2) call email.AddHeaderField("Message-ID","your-unique-message-id").


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.