Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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!!!
 
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


 
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




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





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