Pictures in asp generated e-mails

R

Randy Rahbar

txtMailBody = txtMailBody & "<center><img src='CommAd.jpg'>"

You need to put your domain in the img src.... once it's on the client's
computer, it thinks it's a local image - and therefore not working.

RR
 
R

Randy Rahbar

Please note that I could have used:
txtMailBody = txtMailBody & "<center><img
src='http://mydomain.com/pics/CommAd.jpg'>"
I tried it and it worked fine... but I don't want this method. All I want is
to simply let the picture shows without "hosting" it somewhere on the
web!!!

I just read this part of your original post - so forget what I just posted.
 
I

Ice Man

hi again,


now I want to send a picture in my e-mails that are send using asp code

first I create the mail Object: Set objMail =
Server.CreateObject("CDONTS.NewMail")

After I fill a variable with the html code that will be the mail

txtMailBody = "<html>"
txtMailBody = txtMailBody & "<center>Hi <BR> This is a test"

txtMailBody = txtMailBody & "<center><img src='CommAd.jpg'>"

finally I send the mail using the following code:
objMail.Body = txtMailBody
objMail.Send

----------------------------------------------------------------

The problem is that the picture does not show on the users screens
should I send the picutre as attachement to?? if yes how could this be
done..?

or is there is specific code to use???

Please note that I could have used:
txtMailBody = txtMailBody & "<center><img
src='http://mydomain.com/pics/CommAd.jpg'>"
I tried it and it worked fine... but I don't want this method. All I want is
to simply let the picture shows without "hosting" it somewhere on the web!!!

thanks
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top