SmtpClient.DeliveryMethod 属性
定义
指定处理发出的电子邮件的方法。Specifies how outgoing email messages will be handled.
public:
property System::Net::Mail::SmtpDeliveryMethod DeliveryMethod { System::Net::Mail::SmtpDeliveryMethod get(); void set(System::Net::Mail::SmtpDeliveryMethod value); };
public System.Net.Mail.SmtpDeliveryMethod DeliveryMethod { get; set; }
member this.DeliveryMethod : System.Net.Mail.SmtpDeliveryMethod with get, set
Public Property DeliveryMethod As SmtpDeliveryMethod
属性值
SmtpDeliveryMethod,它指示如何传递电子邮件。An SmtpDeliveryMethod that indicates how email messages are delivered.
注解
传递方法包括:Delivery methods include:
SMTP 服务器。An SMTP server.
将电子邮件移动到 IIS 的拾取目录中,然后传递该消息。Moving the email into the pickup directory for IIS, which then delivers the message.
将电子邮件移动到指定的目录, PickupDirectoryLocation 以便以后由其他应用程序传递。Moving the email to a directory specified by PickupDirectoryLocation for later delivery by another application.
还可以在计算机或应用程序配置文件中设置此属性的默认值。The default value for this property can also be set in a machine or application configuration file. 对属性所做的任何更改都会 PickupDirectoryLocation 覆盖配置文件设置。Any changes made to the PickupDirectoryLocation property override the configuration file settings.