Sending Emails

M

Martin W

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
 
K

Kevin Spencer

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

Ignacio Machin \( .NET/ C# MVP \)

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,
 
A

Adam Barker

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top