I would like to add an image as an attachment to an email and then have control over where the image is actually placed within the email, either by overriding the html to be rendered, or by some other means. Is this possible?
views:
31answers:
2I'll accpet that. I had just bloody been to that page and skimmed over that quickly I missed it. Thanks.
brumScouse
2010-09-17 10:48:34
I overlooked using a HTML file with keywords, this would have meant I had complete control over complete email look and feel. Also overlooked XML and XSLT for this purpose too....Wood forvtrees spring to mind,,,
brumScouse
2010-10-20 21:15:22
A:
i had a small sample of code that will do something like this
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
System.Net.Mail.Attachment attachment = new System.Net.Mail.Attachment("file path here");
mail.Attachments.Add(attachment);
.......[continue with method here]..........
PaulStack
2010-09-17 10:49:01