Why would a CSV attachment appear as text in the body?
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-04-28T13:55:13Z
Indexed on
2010/04/28
14:03 UTC
Read the original article
Hit count: 519
Hi all
I've just implemented some code that emails a bunch of our clients with a CSV file attachment.
Some (not many) have got back to us complaining that they don't get an attachment at all - just the CSV text inside the body of the email. Most however are fine.
I suspect that it's different mail clients that are treating the attachment differently but I don't have enough info yet to be sure.
I'm using .NET's MailMessage class with the Attachment.CreateAttachmentFromString() method. The MIME type I'm specifying for the attachment is text/csv.
Anyone have any idea what the heck is going on?
Ta muchly
David
© Stack Overflow or respective owner