Replies Back to Article

Emailing an ASP/HTML page

Sending to multiple people
January 17, 2003 by Gareth Pointon

This is great, but can you please tell me if you can make it send to every email address in the database automaticly.

Thanks

Gazz

How to get it working on Advance Server 2000?
January 20, 2003 by stephen deere
I can send using CDONTS anyone know how to get the example above working on Advance Server 2000 On our server am getting CDO.Message.1 error '800c000d' The specified protocol is unknown. /control/userdetail/mail2.asp, line 12
getting same error
February 7, 2003 by Christian Talbot

I'm getting same error

CDO.Message.1 (0x800C000D)
The specified protocol is unknown.

Running on IIS 5 on xp. Anyone got any ideas?

trouble when forwarding the email
February 21, 2003 by Dave Bevan

I can get this script to run great but have problems when the client receives the email and then tries to forward it to someone else.

The client sees the email fine but the forwarded email has all the images replaced by just one image from the original email. The SRC references in the forwarded emails are all pointing to the URL specified in the CreateMHTMLBody link, rather than looking for the image location on the server.

Any ideas on how to fix this?

for those getting error
August 14, 2003 by Terence Rose

It seems for those that are running under W2K/XP you have to configure the smpt server.  You would do this using the "CDO.Configuration."  Once that is done you are set.

Problem with CSS and CreateMHTMLBody
August 28, 2003 by Jay Khimani

Hi there,

     I'm able to send a HTML page or asp throug email, but the problem, is everytime i send a mail, some of the css class gets applied and some never. If i run the same page on browser, each gives output exactly as expected.

    I'm appliying css through Link tag, and in CreateMHTMLBody, I've selected to include all the items on the webpage, to be embedded in the mail. When seeing the source of the email, i can see the content id for the CSS, but then also some of the specific classe in the page dont get applied. I also tried with inline style-sheet i.e. with <STYLE></STYLE> tag, but result was the same. If i use style attribute for each and every tag, then it works fine, but u all will agree, this is not the correct way to design a page.

    Can anybody help me out of this problem...

Thanks,
Jay

Getting an error too
October 8, 2003 by Anton Hughes

CDO.Message.1 (0x800C000D)
The specified protocol is unknown.

This is running on IIS5 on win200


RE: Getting an error too
November 13, 2003 by Andrea Martinez

I was getting the protocol error too. It simply seems the object needs a full URL to post the page: so you can't use

.CreatNHTMLBody "page.asp"

but if you use a full URL path to the page it works fine.

.CreatNHTMLBody http://www.fullurl.com/page.asp

maybe there's another way to post a page with a relative path, .. if you know please post..

URL remains relative, generates Page not found error
July 10, 2004 by kailash khandelwal

The code below attaches google homepage and sends in the mail. BUT when I open the mail and click on any link it generates error message -Page not found. I noticed that the problem is with the link path. what am I missing?
Also, such a mail when recd and opened with AOL screws up the entire CSS style sheet.

set oMail = server.CreateObject("CDO.Message")
oMail.From = "automation@flynntechnology.com"
oMail.To = any@any.com"
oMail.Subject = "6432kkMessage from "
oMail.CreateMHTMLBody "http://www.google.com"
oMail.Send
set oMail = nothing