SmtpReplyTo Property |
Namespace: MailBee.SmtpMail
This property is equivalent to ReplyTo property of Message object.
If this property is not set, most mail programs will send replies to From: address.
// To use the code below, import these namespaces at the top of your code. using System; using MailBee; using MailBee.SmtpMail; // The actual code (put it into a method of your class) Smtp mailer = new Smtp(); mailer.ReplyTo.AsString = "Bill Smith <bsmith@company.com>"; mailer.ReplyTo.Add("John Doe, Sales Manager", "jdoe@domain.com"); Console.WriteLine(mailer.ReplyTo.ToString()); // The output. "Bill Smith" <bsmith@company.com>, "John Doe, Sales Manager" <jdoe@domain.com>