SmtpForward
SmtpForward class
的ForwardAsync
参数.
public class SmtpForward
方法
姓名 | 描述 |
---|---|
static Create() | 创建SmtpForward instacne. |
AddRecipient(MailAddress) | 添加转发消息的收件人。 |
AddRecipient(string) | 添加转发消息的收件人。 |
AddRecipients(IEnumerable<string>) | 添加转发邮件的收件人。 |
AddRecipients(MailAddressCollection) | 添加转发邮件的收件人。 |
SetCancellationToken(CancellationToken) | 设置取消令牌(可选)。 |
SetConnection(IConnection) | 连接到服务器(可选)。 |
SetMessage(MailMessage) | 要转发的消息。 |
SetMessage(Stream) | 要转发的消息。 |
SetSender(string) | 转发消息的发送者。 |