Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Pictures in asp generated e-mails

Reply
Thread Tools

Pictures in asp generated e-mails

 
 
Randy Rahbar
Guest
Posts: n/a
 
      09-19-2003
> 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


 
Reply With Quote
 
 
 
 
Randy Rahbar
Guest
Posts: n/a
 
      09-19-2003
> 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.


 
Reply With Quote
 
 
 
 
Ice Man
Guest
Posts: n/a
 
      09-19-2003
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








 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
12-megapixel pictures as sharp when enlarged as 18-meg pictures? Robert Montgomery Digital Photography 95 06-21-2012 01:24 PM
Seeking author of script which generated HTML pages from pictures of them metaperl Python 1 05-29-2007 03:39 PM
BIG pictures or SMALL pictures ? Albert Digital Photography 11 02-20-2007 02:23 AM
Column with pictures instead of 0s and 1s (boolean value representation in pictures) Martin Raychev ASP .Net Datagrid Control 1 03-02-2004 03:00 PM
Sending pictures via email Via OE6+Win XP - I no longer get prompt to "make all my pictures smaller" Ian Roberts Digital Photography 3 09-21-2003 04:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57