Steven Nagy wrote:
Hi,
I am sending an email in my .NET2.0 web app using:
System.Net.Mail.Attachment
System.Net.Mail.MailMessage
I can successfully send an HTML email with a background image, however
that image shows up as an attachment in the target email box.
If its possible, I would like to send HTML formatted emails where the
images don't all appear as attachments. I am guessing its something to
do with the way I am attaching my files; currently i only create a new
instance of the Attachment class, and add it to my MailMessage.
Nothing else.
html emails with graphics are send using mime-types, but it's
cumbersome. The main thing is that an image in a HTML email IS an
attachment, the emailreader simply sees it as part of the email, that
is.. it depends on the settings of the emailreader. So if I were you,
I'd store the images on a server somewhere and use <img
src="yourserver\image.jpg"> tags in the email instead.
FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET:
http://www.llblgen.com
My .NET blog:
http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------