MailBee.NET Objects 3.1

MailMessage.XMailer Property

Gets or sets the details about the software which was used to create the message.

public string XMailer {get; set;}

Property Value

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.

Example

This sample loads the message from .EML file and displays the details of the software, which were used to create the message.

[C#]
using System;
using MailBee;
using MailBee.Mime;

class Sample
{
    static void Main(string[] args)
    {
        // Load the message from file.
        MailMessage msg = new MailMessage();
        msg.LoadMessage(@"C:\Docs\TestMail.eml");

        // Show the details of software which was used
        // to compose the message.
        Console.WriteLine("The mailer is " + msg.XMailer);
    }

}
[Visual Basic]
Imports System
Imports MailBee
Imports MailBee.Mime

Module Sample
    Sub Main(ByVal args As String())
        ' Load the message from file.
        Dim msg As New MailMessage
        msg.LoadMessage("C:\Docs\TestMail.eml")

        ' Show the details of software which was used
        ' to compose the message.
        Console.WriteLine("The mailer is " & msg.XMailer)
    End Sub
End Module

See Also

MailMessage Class | MailBee.Mime Namespace