MailMessageReplyTo Property |
Namespace: MailBee.Mime
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | value is a null reference (Nothing in Visual Basic). |
To specify it as a string, set msg.ReplyTo.AsString value (assuming msg is MailMessage instance).
This value is obtained from Reply-To header of the message. If you need to reply to a message which does not contain Reply-To header, send the reply to From address.
using MailBee; using MailBee.SmtpMail; using MailBee.Pop3Mail; using MailBee.Mime; class Sample { static void Main(string[] args) { // Download the first mail message from the specified POP3 account. MailMessage msg = Pop3.QuickDownloadMessage("mail.company.com", "bill", "password", 1); // Send the autoresponse message. Smtp.QuickSend("bill@company.com", msg.ReplyTo.ToString(), "Warning notification", "Since I'm currently on vacations, I'll reply your message after 01/08/06."); } }