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

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.

適用於

另請參閱