MailMessageFilename Property |
Namespace: MailBee.Mime
This property is especially useful if this MailMessage object was created by MailBee itself, not by your code, and you need to somehow link the filename you supplied to MailBee and the actual MailMessage object which was created by loading the message from that file.
Imagine you used AddJob(String, String, Boolean, String, EmailAddressCollection) method to create multiple send mail jobs from filenames of your stored .EML files. You then subscribed to some events of Smtp object, started processing enqueued send mail jobs, got an event triggered for certain MailMessage object (like MessageSent event) and want to know from which file the particular MailMessage was loaded. Filename property gives you the name of that file.