previousMail (Previous) (Next) Mail::factory()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

導入

導入 – メールの送信方法とメーラーのバックエンド

メールの送信方法

Mailは、 メールを送信するための異なる形式のバックエンドをサポートします。 このため、メールを送信するために 2 段階の手順が必要です。

  • 手順 1

    指定した Mail の新規インスタンス、 つまり factory() メソッドを有するバックエンドを作成します。

  • 手順 2

    send() メソッドを用いてメールを送信します。

メーラーバックエンド

Mail は以下の 3 種類のバックエンドをサポートします。

  • mail

    PHP の組込関数 mail() を使用して送信します。

  • sendmail

    sendmail プログラムにより送信します。

  • smtp

    SMTP サーバに直接接続してメールを送信します。

previousMail (Previous) (Next) Mail::factory()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: jace
See http://email.about.com/od/emailprogrammingtips/qt/et073006.htm

for a useful example of sending mail with SMTP authentication.