This property specifies the email address for delivery notification report.
The value specified by this property is used with SMTP "MAIL FROM" command during SMTP conversation, and the delivery notification report will be sent to this address. Most SMTP servers accept mail from all addresses. However, some SMTP servers use filter and will only accept email from specific senders.
If this property is not specified, the value of FromAddr property will be used in "MAIL FROM" command.
Usage Example:
[Visual Basic]
Private Sub SendEmail()
Dim oSmtp As EASendMailObjLib.Mail
Set oSmtp = New EASendMailObjLib.Mail
'The license code for EASendMail ActiveX Object,
'for evaluation usage, please use "TryIt" as the license code.
oSmtp.LicenseCode = "TryIt"
oSmtp.ServerAddr = "mail.adminsystem.net"
oSmtp.ReturnPath = "report@adminsystem.net"
oSmtp.FromAddr = "test@adminsystem.net"
oSmtp.AddRecipient "Support Team", "support@adminsystem.net", 0
oSmtp.Subject = "Test"
oSmtp.BodyText = "Hello, this is a test...."
If oSmtp.SendMail() = 0 Then
MsgBox "Message delivered!"
Else
MsgBox oSmtp.GetLastErrDescription()
End If
End Sub
See Also