XAMP のMAIL機能を使う
php.iniの設定
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
;xamppを使用
sendmail_path = "C:\xampp\mailtodisk\mailtodisk.exe" -t
;(↑ここだけを有効にする)
C:\xampp\sendmail\sendmail.ini
最下段に追記
;(元の記述で残しているもの)
smtp_ssl=auto
error_logfile=error.log
;(最下段に追記したもの)
smtp_server=smtp.gmail.com
smtp_port=587
auth_username=メールアドレス
auth_password=パスワード
;(それ以外は無効にする:例)
;pop3_server=
;pop3_username=
;pop3_password=