Gets the subject of the e-mail message.
[Visual Basic] Public Property Get Subject() As String
[Visual C++] public: get_Subject(BSTR* pVal);
Property Value
Remarks
[Visual Basic 6.0, VBScript, Visual C++, Delphi] The following example demonstrates how to parse subject. To get the full samples of EAGetMail, please refer to Samples section.
[Visual Basic 6.0] Private Sub ParseSubject() Dim oMail As New EAGetMailObjLib.Mail oMail.LicenseCode = "TryIt" oMail.LoadFile "c:\test.eml", True MsgBox "Subject: " & oMail.Subject End Sub
[VBScript] Private Sub ParseSubject() Dim oMail Set oMail = CreateObject("EAGetMailObj.Mail") oMail.LicenseCode = "TryIt" oMail.LoadFile "c:\test.eml", True MsgBox "Subject: " & oMail.Subject End Sub
[Visual C++] #include "stdafx.h" #include <windows.h> #include "eagetmailobj.tlh" using namespace EAGetMailObjLib; void ParseSubject() { ::CoInitialize(NULL); try { IMailPtr oMail; oMail.CreateInstance(__uuidof(EAGetMailObjLib::Mail)); oMail->LicenseCode = _T("TryIt"); oMail->LoadFile(_T("d:\\test.eml"), VARIANT_TRUE); _tprintf(_T("Subject: %s\r\n"), (TCHAR*)oMail->Subject); } catch(_com_error &ep) { _tprintf(_T("%s\r\n"), (TCHAR*)ep.Description()); } ::CoUninitialize(); }
[Delphi] procedure ParseSubject(); Var oMail: TMail; begin oMail := TMail.Create(Application); oMail.LicenseCode := 'TryIt'; oMail.LoadFile('d:\test.eml', false); ShowMessage('Subject: ' + oMail.Subject); end;
See Also
Mail.From Property
Mail.To Property
Mail.Cc Property
Mail.TextBody Property
Mail.HtmlBody Property
Mail.Attachments Property