ReplyToAddr Property


Value of "Reply-To" header (an address the message sender wants to get replies to).

If composing the message, you can leave this address blank (it is not required by SMTP servers).

To deal with e-mail addresses with international domain names (IDN), use EscapeIdnDomain method to encode an e-mail address to IDN form (when sending out e-mails) or UnescapeIdnDomain method to decode an e-mail address into human-readable form (when receiving e-mails).

If the message was received using MailBee.POP3 object, the property is value of "Reply-To" header or empty string if this header is missing.


Value Type: String
Parameters: None 

Usage example:

Dim Mailer, Msg
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword"
If Mailer.Connected Then
   If Mailer.MessageCount > 0 Then
      Set Msg = Mailer.RetrieveSingleMessage(1)
      If Not Msg Is Nothing Then MsgBox "Reply-To: " & Msg.ReplyToAddr
   End If
   Mailer.Disconnect
End If

See Also:

FromAddr Property
ToAddr Property
CCAddr Property
BCCAddr Property


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.