Sending Messages

Sending an e-mail message is a simple process using the Internet Mail control, and typically involves calling a single method, SendMessage. Using the message that was created in the previous section, let's send the message:

InternetMail1.SendMessage

In most cases, that is all that’s required to send the message. The control will automatically extract the e-mail addresses from the To, Cc, and Bcc properties and deliver the message to those recipients. However, there may be circumstances where you wish to send a message to a different set of addresses. The SendMessage method has several optional arguments that enable you to control the sender, recipient and even the contents of the message itself.


Copyright © 2008 Catalyst Development Corporation. All rights reserved.