Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > CDONTS problem (attaching images)

Reply
Thread Tools

CDONTS problem (attaching images)

 
 
Poppy
Guest
Posts: n/a
 
      04-21-2004
I am sending an html email using the following code :


code:-----------------------------------------------------------------------
-------
dim myMail
set myMail = Server.CreateObject("CDONTS.NewMail")
ImagePath = Server.MapPath("images\mailer")
ImagePath = ImagePath & "\"
'myMail.AttachURL
"C:\inetpub\wwwroot\ambient\images\mailer\mailer_r 1_c1.gif",
"mailer_r1_c1.gif"
myMail.AttachURL ImagePath & "mailer_r1_c1.gif", "mailer_r1_c1.gif"
myMail.AttachURL ImagePath & "mailer_r2_c1.jpg", "mailer_r2_c1.jpg"
myMail.AttachURL ImagePath & "mailer_r3_c1.gif", "mailer_r3_c1.gif"
myMail.AttachURL ImagePath & "mailer_r5_c1.gif", "mailer_r5_c1.gif"
myMail.From = ""
myMail.To = ""
myMail.Subject = "Testing Email"
myMail.body = a
myMail.BodyFormat = 0
myMail.MailFormat = 0
myMail.Send
set myMail = nothing
----------------------------------------------------------------------------
--

The email is sent with the images attached but the images do not appear in
the body.

Any ideas ?


 
Reply With Quote
 
 
 
 
roger
Guest
Posts: n/a
 
      04-21-2004
"Poppy" wrote

> The email is sent with the images attached but the images do not appear in
> the body.


Does this work?

dim myMail
set myMail = Server.CreateObject("CDONTS.NewMail")
myMail.From = ""
myMail.To = ""
myMail.Subject = "Testing Email"
myMail.body = a
myMail.BodyFormat = 0
myMail.MailFormat = 0
myMail.Send
set myMail = nothing

I assume the variable "a" contains a lot of HTML with
<img> tags pointing to the various pictures.

Of course, it won't work for users who don't accept
such email.


--
roger


 
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
Problem with CDONTS with ASP - Lotus notes and Exchange Pav ASP .Net 1 02-08-2007 06:45 PM
CDONTS problem Gonzosez ASP General 7 11-13-2003 06:37 PM
CDONTS Problem John Savidge ASP General 2 09-08-2003 12:39 PM
CDONTS Problem - no error msg Janet ASP General 2 07-30-2003 08:44 PM
CDONTS - PDF Attachment / decoding problem Kyle Pula ASP General 2 07-28-2003 06:41 PM



Advertisments