MailMessage.CreateReply Method
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9119)
CreateReply(MailAddress, ReplyBodyTransformation)
Creates a new message that is a reply to the current message.
Declaration
public MailMessage CreateReply(MailAddress sender, ReplyBodyTransformation transformation)
Parameters
Type | Name | Description |
---|---|---|
MailAddress | sender | The sender of the reply. |
ReplyBodyTransformation | transformation | Transformation mode for the original message body. |
Returns
Type | Description |
---|---|
MailMessage | A new message. |
CreateReply(MailAddress, ReplyBodyTransformation, Boolean)
Creates a new message that is a reply to the current message.
Declaration
public MailMessage CreateReply(MailAddress sender, ReplyBodyTransformation transformation, bool replyToAll)
Parameters
Type | Name | Description |
---|---|---|
MailAddress | sender | The sender of the reply. |
ReplyBodyTransformation | transformation | Transformation mode for the original message body. |
Boolean | replyToAll | True if the reply is to be sent to all e-mail addresses that were in the original 'From', 'Reply-To', 'To' and 'CC' fields. |
Returns
Type | Description |
---|---|
MailMessage | A new message. |
CreateReply(MailAddress, ReplyBodyTransformation, MailReplyOptions)
Creates a new message that is a reply to the current message.
Declaration
public MailMessage CreateReply(MailAddress sender, ReplyBodyTransformation transformation, MailReplyOptions options)
Parameters
Type | Name | Description |
---|---|---|
MailAddress | sender | The sender of the reply. |
ReplyBodyTransformation | transformation | Transformation mode for the original message body. |
MailReplyOptions | options | Mail reply options. |
Returns
Type | Description |
---|---|
MailMessage | A new message. |