Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sending e-mail with CDOSYS

Posted on 2012-04-04
4
Medium Priority
?
417 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
ID: 37806131
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
ID: 37806281
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 2000 total points
ID: 37806341
0
 

Author Closing Comment

by:johnhardy
ID: 37819737
Many thanks
excellent
Regards

John
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

782 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