?
Solved

Sending e-mail with CDOSYS

Posted on 2012-04-04
4
Medium Priority
?
415 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

Question has a verified solution.

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

In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

718 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