Load email from an eml file(RFC822) to current Mail object.
[Syntax] Visual C++: HRESULT LoadMessage( BSTR FileName long* pVal ) Visual Basic: LoadMessage( FileName As String ) As Long
FileName
The full path of the email file to load.
Return Values
If this method succeeds, the return value is zero; otherwise the return value is non-zero.
Usage Example:
[Visual Basic]
Dim oSmtp As Object
Set oSmtp = CreateObject("EASendMailObj.Mail")
oSmtp.LicenseCode = "TryIt"
'load this email from ANPOP.
oSmtp.LoadMessage "c:\1.eml"
See Also