AXSoft SMTPSock - SendMail

Description

Sends the MessageObject email.

Type

Method

Syntax

object.SendMail(MessageObject as axsSMTPMessage)

Return Type

None

Remarks

Sends the instance of the specified axsSMTPMessage. While the message is being sent, the MessageProgress event will constantly be fired with progress information. Note that the MessageProgress event does not actually fire as soon as SendMail is started. First, certain information such as the senders name and list of recipients and some other information are sent. The event is not fired until the "data" portion of the message (message body/attachments) are sent. Once the email has been successfully sent, the MailSendComplete event is fired. If an error occurs while sending an email, then the Error event will be fired and you will be disconnected from the server.

See Also: axsSMTPMessage Object, MessageProgress, MailSendComplete, Error