Use the MAPISession and MAPIMessages controls. When you click the Send button, the program sets the MAPISession's UserName and Password, and signs on to the mail system.
It then composes a mail message using the MAPIMessages control. It fills in the recipient's name and address, subject, and message body. It then calls the control's Send method to send the mail and SignOff to close the mail connection.
On my system, at least, Outlook Express pops up a dialog asking the user to confirm the message. My guess is this is to make it harder to write email viruses.
|