LoginSignup
0
0

More than 3 years have passed since last update.

MAMP WINDOWS環境で メールが送れない

Last updated at Posted at 2020-10-29

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=
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0