Occurs when the component is about to finish a job of sending an individual e-mail message or a mail merge series.
The event handler receives an argument of type SmtpFinishingJobEventArgs containing data related to this event. The following SmtpFinishingJobEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| IsSuccessful | Gets if the job was completed successfully. |
| Job | Gets the job which is about to be finished. |
| KeepIt | Gets or sets whether to put this job in the collections of finished jobs. |
| State | Gets a reference to the object which was supplied by the developer in state parameter of asynchronous methods of the mailer components. |
This event takes place after the job was finished and MailBee needs to know what to do with the finished job next. Usually, you have two choices: to keep the finished job in JobsSuccessful or JobsFailed collection where you can examine the results of bulk mail operation after it completes, or you can opt to destroy the job in case if you send many messages and need to keep memory usage small.
Unlike events like MessageSent, this event occurs in all cases: when the message was sent, not sent, or submitted to the pickup folder.
Smtp Class | MailBee.SmtpMail Namespace