MAIL Attachment Location issue

Category: c# language

Question

aju982007 on Sat, 27 Oct 2012 05:09:39


Can i put mail attachment in td of the table on  sending mail  through code

Replies

Roar Jørstad on Sat, 27 Oct 2012 09:16:42


You could add a RichText control to your page and if the mail sending doesn't give an exception, you can data bind the control with the attached document.

Kareninstructor on Sat, 27 Oct 2012 18:37:16


Still say the same as here http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/b1e4a07b-4ad2-49a9-bcfb-ed7068809c43

Viorel_ on Sat, 27 Oct 2012 20:03:52


See examples of embedding images:

  • http://haseebmukhtar.wordpress.com/2011/11/15/c-embed-images-in-email-embedded-images-not-attachment/
  • http://www.systemnetmail.com/faq/2.6.aspx

Probably it should work with other kind of embedded attachments. According to articles, you have to use AlternateView and LinkedResource classes.

I also suggest you to send and then examine the HTML source using some other mailing software that supports the required feature, for example Outlook. What HTML do you see for embedded attachments?