Gets or sets the name of organization to which the sender of the message belongs.
A string containing the value of Organization header of the message. The default value is an empty string.
This sample loads the message from .EML file and displays the name of the organization which sent this message.
[C#] 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."); } } }
[Visual Basic] Imports System Imports MailBee Imports MailBee.Pop3Mail Imports MailBee.Mime Module Sample Sub Main(ByVal args As String()) ' Download the first mail message from the specified POP3 account. Dim msg As MailMessage = Pop3.QuickDownloadMessage("pop3.mail.com", "kathy1981", "password", 1) ' Display the name of organization which have sent the message. If msg.Organization <> String.Empty Then Console.WriteLine("The message was sent by " & msg.Organization) Else Console.WriteLine("The message was sent by unknown organization or by person.") End If End Sub End Module
MailMessage Class | MailBee.Mime Namespace