SmtpMail 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The recommended alternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid=14202
提供使用 Windows 2000 協作資料物件(CDOSYS)訊息元件傳送訊息的屬性與方法。 建議的替代方式:System.Net.Mail。
public ref class SmtpMail
public class SmtpMail
[System.Obsolete("The recommended alternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid=14202")]
public class SmtpMail
type SmtpMail = class
[<System.Obsolete("The recommended alternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid=14202")>]
type SmtpMail = class
Public Class SmtpMail
- 繼承
-
SmtpMail
- 屬性
備註
郵件訊息可透過 Microsoft Windows 2000 內建的 SMTP 郵件服務或任意的 SMTP 伺服器傳送。 命名空間中的 System.Web.Mail 型別可從 ASP.NET 或任何受管理應用程式使用。
若未設定該 SmtpServer 屬性,郵件預設會被排隊,確保呼叫程式不會阻擋網路流量。 若設定了該 SmtpMail 屬性,郵件會直接送達指定的伺服器。
屬性
| 名稱 | Description |
|---|---|
| SmtpServer |
已淘汰.
取得或設定 SMTP 中繼郵件伺服器的名稱,用於發送電子郵件。 建議的替代方式:System.Net.Mail。 |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
已淘汰.
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetHashCode() |
已淘汰.
做為預設哈希函式。 (繼承來源 Object) |
| GetType() |
已淘汰.
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
已淘汰.
建立目前 Object的淺層複本。 (繼承來源 Object) |
| Send(MailMessage) |
已淘汰.
透過類別屬性中提供的 MailMessage 參數發送電子郵件。 建議的替代方式:System.Net.Mail。 |
| Send(String, String, String, String) |
已淘汰.
發送電子郵件,使用指定的目的地參數。 建議的替代方式:System.Net.Mail。 |
| ToString() |
已淘汰.
傳回表示目前 物件的字串。 (繼承來源 Object) |