Gets the subject of the e-mail message.
[Visual Basic] Public Property Subject As String
[C#] public string Subject {get;}
[C++] public: __property String^ get_Subject();
[JScript] public function get Subject() : String;
Property Value
Remarks
Example
[Visual Basic, C#, C++] The following example demonstrates how to parse email subject. To get the full samples of EAGetMail, please refer to Samples section.
[Visual Basic - Parse Email Subject] Imports EAGetMail Public Sub ParseSubject() Dim oMail As New Mail("TryIt") oMail.Load("c:\test.eml", False) Console.WriteLine("Subject: {0}", oMail.Subject) End Sub
[C# - Parse Email Subject] using System; using System.Collections; using EAGetMail; public static void ParseSubject() { Mail oMail = new Mail("TryIt"); oMail.Load("c:\\test.eml", false); Console.WriteLine("Subject: {0}", oMail.Subject); }
[C++/CLI - Parse Email Subject] using namespace System; using namespace System::Collections; using namespace EAGetMail; Void ParseSubject() { Mail ^oMail = gcnew Mail("TryIt"); oMail->Load("c:\\test.eml", false); Console::WriteLine("Subject: {0}", oMail->Subject); }
See Also
Mail.ReplyTo Property
Mail.To Property
Mail.From Property
Mail.TextBody Property
Mail.HtmlBody Property
Mail.Attachments Property
Online Tutorials
Parse Email in C# - Tutorial
Parse Email in VB.NET - Tutorial
Parse Email in C++/CLI - Tutorial