言語

SmtpMail.Send メソッド

定義

電子メールを送信します。 推奨される代替方法: System.Net.Mail.

オーバーロード

名前 説明
Send(MailMessage)

MailMessage クラスのプロパティで指定された引数を使用して電子メール メッセージを送信します。 推奨される代替方法: System.Net.Mail.

Send(String, String, String, String)

指定した宛先パラメーターを使用して電子メール メッセージを送信します。 推奨される代替方法: System.Net.Mail.

Send(MailMessage)

MailMessage クラスのプロパティで指定された引数を使用して電子メール メッセージを送信します。 推奨される代替方法: System.Net.Mail.

public:
 static void Send(System::Web::Mail::MailMessage ^ message);
public static void Send(System.Web.Mail.MailMessage message);
static member Send : System.Web.Mail.MailMessage -> unit
Public Shared Sub Send (message As MailMessage)

パラメーター

message
MailMessage

送信する MailMessage

例外

メールを送信できません。

Send(MailMessage) メソッドには、Microsoft Windows NT、Windows 2000、またはWindows XPオペレーティング システムが必要です。

適用対象

Send(String, String, String, String)

指定した宛先パラメーターを使用して電子メール メッセージを送信します。 推奨される代替方法: System.Net.Mail.

public:
 static void Send(System::String ^ from, System::String ^ to, System::String ^ subject, System::String ^ messageText);
public static void Send(string from, string to, string subject, string messageText);
static member Send : string * string * string * string -> unit
Public Shared Sub Send (from As String, to As String, subject As String, messageText As String)

パラメーター

from
String

メール送信者のアドレス。

to
String

メール受信者のアドレス。

subject
String

電子メール メッセージの件名行。

messageText
String

電子メール メッセージの本文。

例外

Send(String, String, String, String) メソッドには、Microsoft Windows NT、Windows 2000、またはWindows XPオペレーティング システムが必要です。

適用対象