Tuesday, March 18, 2008

How can I use ASP to send mail using CDOSYS?

The Object (CDO.Message) has several properties and methods that you must know:

.From E-mail address of the sender
.To E-mail address of the recipient
.CC E-mail address of the CC recipient
.Subject Subject of the message
.TextBody Body of the message in plain text
.HTMLBody Body of the message in HTML
.Send Calling this method the message is sent

The following example is the simplest email you can send. As you can see it couldn't be easier..

No comments: