Replies Back to Article
Emailing an ASP/HTML page
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
I'm getting same error
CDO.Message.1 (0x800C000D)
The specified protocol is unknown.
Running on IIS 5 on xp. Anyone got any ideas?
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?
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.
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
CDO.Message.1 (0x800C000D)
The specified protocol is unknown.
This is running on IIS5 on win200
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..
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