MailMessageXMailer Property |
Gets or sets the details about the software which was used to create the message.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public string XMailer { get; set; }
Public Property XMailer As String
Get
Set
Property Value
Type:
String
A string containing the information about the software which was used to create the message.
By default, it's
MailBee.NET N, where
N - is
Version.
Examples This sample loads the message from .EML file and displays the details of the software, which were used to create the message.
using System;
using MailBee;
using MailBee.Mime;
class Sample
{
static void Main(string[] args)
{
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail.eml");
Console.WriteLine("The mailer is " + msg.XMailer);
}
}
Imports System
Imports MailBee
Imports MailBee.Mime
Module Sample
Sub Main(ByVal args As String())
Dim msg As New MailMessage
msg.LoadMessage("C:\Docs\TestMail.eml")
Console.WriteLine("The mailer is " & msg.XMailer)
End Sub
End Module
See Also