• スポンサード リンク

XAMPP
メール送信の設定方法

本ページの紹介

XAMPPのメール送信の設定方法について説明します。

手順

php.iniの設定 C:\xampp\php\php.iniをテキストエディタで開きます。

以下の行を
;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

次のようにコメントを外します。
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

以下の行を
sendmail_path = "C:\xampp\mailtodisk\mailtodisk.exe"

次のようにコメンアウトします。
;sendmail_path = "C:\xampp\mailtodisk\mailtodisk.exe"


sendmail.iniの設定(Gmailを利用する場合) C:\xampp\sendmail\sendmail.iniをテキストエディタで開きます。

以下の行を
smtp_server=mail.mydomain.com

次のように書き換えます。
smtp_server=smtp.gmail.com

以下の行を
smtp_port=25

次のように書き換えます。
smtp_port=587

以下の行を
;debug_logfile=debug.log

次のようにコメントを外します。
debug_logfile=debug.log

以下の箇所を
auth_username=
auth_password=

次のように書き換えます。
auth_username=(Gmailのユーザー名)
auth_password=(Gmailのパスワード)

以下の行を
force_sender=

次のように書き換えます。
force_sender=(Gmailのメールアドレス)




スポンサード リンク
    inserted by FC2 system