最終更新: 2018-08-18 Googleアカウントの設定メール送信に使いたいGoogleアカウントでログインし、下記のページを開きます。 https://myaccount.google.com/lesssecureapps 「安全性の低いアプリの許可」を有効にします。 XAMPPの設定対応バージョン XAMPP 7.2.2 (Windows 10) XAMPP 5.6.12 (Windows 10) XAMPP 1.8.3 (Windows 7) 下記の設定ファイルを書き換えた後、Apacheを再起動すればOKです。 xampp\php\php.ini [mail function] ; 下記の設定はそのままでよい。 SMTP=localhost smtp_port=25 ; sendmail_path を下記の値にする。 ; sendmail_path の項目が存在しなければ、
![XAMPP(Windows版)で、Gmail経由でローカル環境からメールを送信する - すたら日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/1a881f8ae3d9b516a27cdee7e77d13a097968765/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fs%2Fsutara_lumpur%2F20170606%2F20170606175922.png)