How to Send Mail from Localhost XAMPP Using Gmail full (ok)

https://meetanshi.com/blog/send-mail-from-localhost-xampp-using-gmail/

How to Send Mail from Localhost XAMPP Using Gmail

In How to - MagentoUpdated: December 9, 2019 Sanjay Jethva

How to Send Mail from Localhost XAMPP Using Gmail

Chú ý: Sau khi cài đặt gửi mail bằng script phía dưới có ví dụ ta sử dụng gửi mail wordpress trên local bằng hình ảnh sau đã thành công

XAMPP is Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P). It is for developers to create a local webserver for testing or deployment purposes.

As a part of testing, developers need to send emails that are always going to be there when it comes to online businesses.

To send mail from localhost XAMPP using Gmail, configure XAMPP after installing it. Follow the below steps for the same.

Steps to Send Mail From Localhost XAMPP Using Gmail:

  1. Open XAMPP Installation Directory.

  2. Go to C:\xampp\php and open the php.ini file. C:\xampp\php\php.ini

  3. Find [mail function] by pressing ctrl + f.

  4. Search and pass the following values:

  1. Now, go to C:\xampp\sendmail and open sendmail.ini file. C:\xampp\sendmail\sendmail.ini

  2. Find [sendmail] by pressing ctrl + f.

  3. Search and pass the following values

Tham khảo: https://app.gitbook.com/o/-LVfVRgJVnpA6bttpEFT/s/-MCBeDUD-PK_RF-YgJRe/laravel-7-6-notification-tutorial-or-create-notification-with-laravel-7-6-ok

Script To Send Mail:

Đã cấu hình thành công

C:\xampp\sendmail\sendmail.ini

C:\xampp\php\php.ini

C:\xampp\htdocs\data\mail.php

Hope this guide will be helpful!

Note: Please configure “Less secure apps” settings as shown at https://support.google.com/cloudidentity/answer/6260879 for proper working.

Any doubts on the topic? Please mention them in the Comments section below and I’d be glad to help you out.

Feel free to share the solution via social media.

Thanks!

Last updated

Was this helpful?