Occurs after the current message was saved to MailBee.NET Queue or IIS SMTP pickup folder.
The event handler receives an argument of type SmtpMessageSubmittedToPickupFolderEventArgs containing data related to this event. The following SmtpMessageSubmittedToPickupFolderEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| ActualRecipients | Gets the list of recipients the message is addressed to. |
| ActualSenderEmail | Gets the e-mail address of the sender of the mail message. |
| Filename | Gets the filename of the saved message file. |
| MailMessage | Gets the mail message which was submitted to IIS SMTP queue (pickup folder). |
| MergeRowIndex | Gets the index of the data row used for mail merge of this message. |
| MergeTable | Gets the reference to the data table used for mail merge of this message. |
| PickupFolderName | Gets the full physical path to the folder the message file was saved in. |
| State | Gets a reference to the object which was supplied by the developer in state parameter of asynchronous methods of the mailer components. |
| Tag | Gets the tag assigned by the developer to SendMailJob of processing the given message. |
This event can help to keep track of submitting multiple e-mails to the pickup folder (initiated with SubmitJobsToPickupFolder method), and find out which filename has been assigned to each e-mail's .EML file when it was saved to disk.
The example is available at SubmitJobsToPickupFolder topic.
Smtp Class | MailBee.SmtpMail Namespace