Embedded Email attachments in SmtpMail

G

Guest

Is there a way to do embedded email attachments using SmtpMail? I have normal attachments working (see below) but there seems to be no other properties to set on the MailAttachment object for embedded attachements I am trying to send an email with an embedded signature graphic. Thanks in advance

Dim objMailAttachment As New MailAttachment("E:\!work\DMS Internet\DMS-FOOT.jpg"
Dim objMailMessage As New MailMessage(

objMailMessage.From = "(e-mail address removed)
objMailMessage.To = "(e-mail address removed)
'objMailMessage.Bcc = "(e-mail address removed)
objMailMessage.Subject = "Look what I did!
objMailMessage.Body = "Text from .Net email with Attachment - WOOHOO!!!
objMailMessage.Attachments.Add(objMailAttachment

SmtpMail.SmtpServer = "11.11.11.11
SmtpMail.Send(objMailMessage)
 
B

Bill

System.Web.Mail does not have a way of doing this. There is no way to set
the content type to multipart/related which is required to send embedded
images.

You will probably need to use a 3rd party component. Take a look at
http://www.quiksoft.com/emdotnet/smtp/

Bill

Amelia said:
Is there a way to do embedded email attachments using SmtpMail? I have
normal attachments working (see below) but there seems to be no other
properties to set on the MailAttachment object for embedded attachements I
am trying to send an email with an embedded signature graphic. Thanks in
advance!
 
G

Guest

Hi Bill

Thanks very much for your reply. I was thinking this was the case but then again hoping not

I will check out the site you suggested

Sorry about the late thanks

Kind Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top