MailMessageFilename Property
Gets the filename of the file this message was loaded from.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public string Filename { get; }

Property Value

Type: String
The filename value of LoadMessage(String) method call used to load this message from the file, or a null reference (Nothing in Visual Basic) if this message was not loaded from a file.
Remarks

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.

See Also