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

April 18, 2008

Bounce email processing question: CopyMail vs. GetAllHeaders?

Question:
For the Bounce ActiveX is it better to use:
mailman.CopyMail()
OR
mailman.GetAllHeaders(10)?

Answer:
If the intent is to process a mailbox to handle bounces, CopyMail is a poor choice if the mailbox can potentially contain emails with large attachments. (However, if the mailbox to be read is one setup explicitly for bounce processing, then CopyMail is fine.)

If GetAllHeaders is used, you want to get enough of the email so that the bounce information is available. 10 lines may not be enough. I would suggest a value such as 200, which should be enough for the body of a bounce notification, but protects from huge attachments…


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.