Reply address of current email.
Normally, the reply address is same as sender address (FromAddr). In some cases, it is desirable to have the recipients replied to another address. Set the ReplyTo property to another email address will enable all replies sending to the specified email address instead of the sender address.
Usage Example:
[Visual Basic]
Private Sub SendEmail()
Dim oSmtp As AOSMTPLib.Mail
Set oSmtp = New AOSMTPLib.Mail
oSmtp.ServerAddr = "mail.adminsystem.net"
'Replied email would be sent to webmaster@adminsystem.net
'instead of test@adminsystem.net
oSmtp.ReplyTo = "webmaster@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
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.