MailMessageOrganization Property
Gets or sets the name of organization to which the sender of the message belongs.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public string Organization { get; set; }

Property Value

Type: String
A string containing the value of Organization header of the message. The default value is an empty string.
Examples
This sample loads the message from .EML file and displays the name of the organization which sent this message.
using System;
using MailBee;
using MailBee.Pop3Mail;
using MailBee.Mime;

class Sample
{
    static void Main(string[] args)
    {
        // Download the first mail message from the specified POP3 account.
        MailMessage msg = Pop3.QuickDownloadMessage("pop3.mail.com", "kathy1981", "password", 1);

        // Display the name of organization which have sent the message.
        if (msg.Organization != String.Empty)
        {
            Console.WriteLine("The message was sent by " + msg.Organization);
        }
        else
        {
            Console.WriteLine("The message was sent by unknown organization or by person.");
        }
    }
}
See Also