SmtpMail - inline images

  • Thread starter Thread starter Sergio
  • Start date Start date
S

Sergio

Hi,


I know how to use SmtpMail to create and send a mail
message in text or HTML format. I always use the URL to
the location of images on the server to include those
images in my mail body.

However, recently I was asked if it is possible to use
inline images, included (as attachments?) in the mail
message instead of using the URL to the images. I believe
it's not simply a matter of creating a MailAttachment
object and add it to the MailMessage object, because I
want the images to be shown inline in the body.

If somebody knows how to do this ...
 
Cant you use the IMG SRC in the HTML body with file:\\ blah or some other
reference to the atttachment.
 
You may be talking about MHTML, which is a type of html broken into mime
parts that can contain other files that can be referenced in the <img> tag.
I've used it before and it works for compositied files of any kind
really(you'll see office and other apps pump them out as well)

http://www.dsv.su.se/~jpalme/ietf/mhtml.html should tell you what you need
to know, but if not, just search google for MHTML.
 
Tried it, and it works! Thanks a lot.

-----Original Message-----
You may be talking about MHTML, which is a type of html broken into mime
parts that can contain other files that can be
 
Back
Top