System.Web.Mail FAQ

Complete FAQ Listing


4.4.6 Attachments added to the MailMessge are corrupt. Printer Friendly   Email This FAQ   Discuss

You may want to try changing the attachment encoding. For example, create your attachments like:
MailAttachment attachment = new MailAttachment( "test.txt", MailEncoding.Base64)
or
MailAttachment attachment = new MailAttachment( "test.txt", MailEncoding.UUEncode)
Also, if you are using this on Windows 2000, there may be a bug in your IIS SMTP Service. Check out
Periods at the Beginning of a Line Are Removed When Placed into the SMTP Pickup Directory
http://support.microsoft.com/?id=286358
 

Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
New Post
  • Corrupts tiff image as attachment    [ Reply ]
    • RE: Corrupts tiff image as attachment    [ Reply ]
  • 643633    [ Reply ]
  • about mail    [ Reply ]
  • Problem sending excel file via email    [ Reply ]
  • Attachment do not contain data    [ Reply ]