Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Components
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 10th, 2006, 04:55 PM
Registered User
Join Date: Jan 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to send HTML email by using CDO.Message


I am trying to send mails through cdo.message object from Win 2003 server. In the message I want to send an image along with some text. Image is not showing in the mail. And it looks like that the image have been blocked due to security reason --> click here to download the image. So, I always have to do right click on the picture in order to download the picture, and also after I add an image into the email body, the email always go to spam folder.
So, I just wonder if anybody know how to display the image in the email without having to do right click to download it. And, how do I make the email not go to spam folder because it never goes to spam folder before I add an image in the folder?

And, this is my code:

    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Your Friend " & Request.Form("name") & " sent you this link."

    myMail.CreateMHTMLBody "http://............/......../tellfriendemail.html"
        myMail.HtmlBody = replace(myMail.HtmlBody, "#ovmessage#", Request.Form("msg"))
    Set myMail=Nothing


  #2 (permalink)  
Old January 10th, 2006, 06:48 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

Cross post:

Wind is your friend

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupt HTML Body in CDO email patwadd Classic ASP Professional 3 July 26th, 2007 05:14 PM
Excel VBA - Send email with html message body elad Excel VBA 1 July 16th, 2007 03:28 PM
Send email using CDO, multiple recipients for DSN? Mattallyc Classic ASP Professional 7 October 2nd, 2006 10:43 AM
how to send HTML email by using CDO.Message ittech Classic ASP Basics 2 January 10th, 2006 06:49 PM

All times are GMT -4. The time now is 05:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.