Get sender's email address.
[Syntax] C++: HRESULT GetFromAddress( BSTR* pVal ) Visual Basic: GetFromAddress() As String C#: string GetFromAddress()
Return Value
This method returns sender's email address.
Usage Example
[Visual Basic]
Sub ParseSender( emailFile As String )
Dim oMsg As new ANPOPLib.POPMSG
Dim senderName, senderAddr, replyAddr As String
If oMsg.ImportFile( emailFile ) <> 0 Then
MsgBox "error with ImportFile"
Exit Sub
End If
senderName = oMsg.GetFrom()
senderAddr = oMsg.GetFromAddress()
replyAddr = oMsg.GetReplyTo()
Set oMsg = Nothing
End Sub
See Also
GetFrom Method
GetHeaderItem Method
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.