Embedded Email attachments in SmtpMail

  • Thread starter Thread starter Guest
  • Start date Start date
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)
 
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!
 
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
 
Back
Top