SmtpMail - inline images

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sergio

    #1

    SmtpMail - inline images

    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 ...


  • news.microsoft.com

    #2
    Re: SmtpMail - inline images

    Cant you use the IMG SRC in the HTML body with file:\\ blah or some other
    reference to the atttachment.



    "Sergio" <anonymous@disc ussions.microso ft.com> wrote in message
    news:029601c39e c9$3220a080$a00 1280a@phx.gbl.. .[color=blue]
    > 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 ...
    >
    >[/color]


    Comment

    • Daniel O'Connell

      #3
      Re: SmtpMail - inline images

      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.
      "Sergio" <anonymous@disc ussions.microso ft.com> wrote in message
      news:029601c39e c9$3220a080$a00 1280a@phx.gbl.. .[color=blue]
      > 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 ...
      >
      >[/color]


      Comment

      • Sergio

        #4
        Re: SmtpMail - inline images

        Tried it, and it works! Thanks a lot.

        [color=blue]
        >-----Original Message-----
        >You may be talking about MHTML, which is a type of html[/color]
        broken into mime[color=blue]
        >parts that can contain other files that can be[/color]
        referenced in the <img> tag.[color=blue]
        >I've used it before and it works for compositied files[/color]
        of any kind[color=blue]
        >really(you'l l see office and other apps pump them out as[/color]
        well)[color=blue]
        >
        >http://www.dsv.su.se/~jpalme/ietf/mhtml.html should tell[/color]
        you what you need[color=blue]
        >to know, but if not, just search google for MHTML.
        >"Sergio" <anonymous@disc ussions.microso ft.com> wrote in[/color]
        message[color=blue]
        >news:029601c39 ec9$3220a080$a0 01280a@phx.gbl. ..[color=green]
        >> 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[/color][/color]
        believe[color=blue][color=green]
        >> 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 ...
        >>
        >>[/color]
        >
        >
        >.
        >[/color]

        Comment

        Working...