Sending Emails

Discussion in 'ASP .Net' started by Martin W, Jul 26, 2004.

  1. Martin W

    Martin W Guest

    Hello,

    My application sends Emails using the SmtpMail class
    and I am reading a HTML page which is then used as the
    body for my email.Now this web page has got images also

    How would I map the images to be sent as part of the
    email.Do I use Server.MapPath

    Thanks

    Martin
     
    Martin W, Jul 26, 2004
    #1
    1. Advertising

  2. The images are image tags with a URL indicating the location of the images.
    Make the URLs absolute.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "Martin W" <> wrote in message
    news:425c01c4731c$52bc30c0$...
    > Hello,
    >
    > My application sends Emails using the SmtpMail class
    > and I am reading a HTML page which is then used as the
    > body for my email.Now this web page has got images also
    >
    > How would I map the images to be sent as part of the
    > email.Do I use Server.MapPath
    >
    > Thanks
    >
    > Martin
    >
    >
     
    Kevin Spencer, Jul 26, 2004
    #2
    1. Advertising

  3. Hi,

    Do you want to include the images in the email or just link them from the
    message to a web server?

    You only use Server.MapPath if you are attaching the images, if so you also
    may have to parse the page in case that any image change or is
    include/delete.

    If you opt to just send the page and the images are stored on the website
    you have to worry nothing at all of tihs.


    Cheers,

    --
    Ignacio Machin,
    ignacio.machin AT dot.state.fl.us
    Florida Department Of Transportation

    "Martin W" <> wrote in message
    news:425c01c4731c$52bc30c0$...
    > Hello,
    >
    > My application sends Emails using the SmtpMail class
    > and I am reading a HTML page which is then used as the
    > body for my email.Now this web page has got images also
    >
    > How would I map the images to be sent as part of the
    > email.Do I use Server.MapPath
    >
    > Thanks
    >
    > Martin
    >
    >
     
    Ignacio Machin \( .NET/ C# MVP \), Jul 26, 2004
    #3
  4. Martin W

    Martin Guest

    Kevin,

    pardon my ignorance but how do I make the URLs
    absolute


    >-----Original Message-----
    >The images are image tags with a URL indicating the

    location of the images.
    >Make the URLs absolute.
    >
    >--
    >HTH,
    >Kevin Spencer
    >..Net Developer
    >Microsoft MVP
    >Big things are made up
    >of lots of little things.
    >
    >"Martin W" <> wrote

    in message
    >news:425c01c4731c$52bc30c0$...
    >> Hello,
    >>
    >> My application sends Emails using the SmtpMail class
    >> and I am reading a HTML page which is then used as the
    >> body for my email.Now this web page has got images also
    >>
    >> How would I map the images to be sent as part of the
    >> email.Do I use Server.MapPath
    >>
    >> Thanks
    >>
    >> Martin
    >>
    >>

    >
    >
    >.
    >
     
    Martin, Jul 26, 2004
    #4
  5. Martin W

    Adam Barker Guest

    absolute paths are where you specify the fully qualified URL (usually)
    beginning with http://...

    relative paths are where the file is based on the calling page, for example
    if an HTML file resides in http://www.test.com/imagetest and contains <img
    src='images/myimages/picture.gif'>, the server will try to find the image at
    http://www.test.com/imagetest/images/myimages/picture.gif

    For images in HTML based e-mails, always include the full URL beginning with
    http://...


    "Martin" <> wrote in message
    news:425c01c4731f$167085f0$...
    >
    > Kevin,
    >
    > pardon my ignorance but how do I make the URLs
    > absolute
    >
    >
    > >-----Original Message-----
    > >The images are image tags with a URL indicating the

    > location of the images.
    > >Make the URLs absolute.
    > >
    > >--
    > >HTH,
    > >Kevin Spencer
    > >..Net Developer
    > >Microsoft MVP
    > >Big things are made up
    > >of lots of little things.
    > >
    > >"Martin W" <> wrote

    > in message
    > >news:425c01c4731c$52bc30c0$...
    > >> Hello,
    > >>
    > >> My application sends Emails using the SmtpMail class
    > >> and I am reading a HTML page which is then used as the
    > >> body for my email.Now this web page has got images also
    > >>
    > >> How would I map the images to be sent as part of the
    > >> email.Do I use Server.MapPath
    > >>
    > >> Thanks
    > >>
    > >> Martin
    > >>
    > >>

    > >
    > >
    > >.
    > >
     
    Adam Barker, Jul 26, 2004
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Natty Gur
    Replies:
    0
    Views:
    383
    Natty Gur
    Aug 19, 2003
  2. Wim Hollebrandse

    Re: Sending multiple emails (1000+) using dotnet

    Wim Hollebrandse, Aug 19, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    415
    Wim Hollebrandse
    Aug 19, 2003
  3. Leszek

    Sending secure emails

    Leszek, Aug 20, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    353
    Jacob Yang [MSFT]
    Aug 21, 2003
  4. VB Programmer

    HELP: Sending Emails From Webform

    VB Programmer, Nov 17, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    404
    Ruslan Shlain
    Nov 17, 2003
  5. Joao S Cardoso [MVP]

    inetserv + svhost 100% cpu sending emails with SMTP

    Joao S Cardoso [MVP], Nov 21, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    527
    Joao S Cardoso [MVP]
    Nov 21, 2003
Loading...

Share This Page