AXSoft SMTPSock - SendMail

Description

Sends the email to the SMTP server.

 
Type

Method

 
Syntax

object.SendMail()

 
Return Type

None

 
Remarks

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: MessageProgress, MailSendComplete, Error