Solved

Sending e-mail with CDOSYS

Posted on 2012-04-04
4
408 Views
Last Modified: 2012-04-07
I found this code on the page

http://www.w3schools.com/asp/asp_send_email.asp


Sending an HTML e-mail that sends a webpage from a website:

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.CreateMHTMLBody "http://www.w3schools.com/asp/"
myMail.Send
set myMail=nothing
%>

I cannot see how this can send as it does not have a button and I do not understand the line myMail.CreateMHTMLBody "http://www.w3schools.com/asp/"

Can anyone explain how this functions please.

Thanks

John
0
Comment
Question by:johnhardy
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
Comment Utility
The code is server-side code that will execute on the server-side as soon as the page it is on is loaded so it doesn't need a button.

The CreateMHTMLBody line will just take the specified webpage and convert into a format that can be sent as an email body.

http://msdn.microsoft.com/en-us/library/ms527024(v=exchg.10).aspx
0
 

Author Comment

by:johnhardy
Comment Utility
I was hoping to have a webpage where some entries can be made.

This would seem not to do this?
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:johnhardy
Comment Utility
Many thanks
excellent
Regards

John
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
If you don't know how to downgrade, my instructions below should be helpful.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now