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 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 10th, 2006, 04:18 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

Hi,

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?

Thanks!!!
Reply With Quote
  #2 (permalink)  
Old January 10th, 2006, 04:27 PM
Registered User
 
Join Date: Jan 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And, this is my code:

    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Your Friend " & Request.Form("name") & " sent you this link."
    myMail.From="customercare@ovwatch.com"
    myMail.To=Request.Form("f_email")

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


Reply With Quote
  #3 (permalink)  
Old January 10th, 2006, 06:49 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
Default

Cross Post:
http://p2p.wrox.com/topic.asp?TOPIC_ID=38556

Wind is your friend
Matt
Reply With Quote
Reply


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 Components 1 January 10th, 2006 06:48 PM



All times are GMT -4. The time now is 07:27 AM.


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