Posts

Showing posts with the label smtp server.

Sending Email in Laravel using SMTP server of Google Gmail

Image
Sending email with Gmail via a third-party application has undergone several changes for security reasons. Now to send email using Google SMTP you need to activate 2 step verification, the steps we will take this time may change in the future, but Google will definitely provide us with information via email or news. This time we will make Laravel able to send emails using a Gmail account with the following steps: Step 1 : Create laravel project This step is optional, if you already have an existing Laravel project, you can skip this step and go directly into your Laravel project. Open a terminal or command prompt and type the following command. composer create-project laravel/laravel laravel-mail cd laravel-mail Step 2 : Create App Password for Gmail SMTP Account Important: To create an app password, you need 2-Step Verification on your Google Account. If you use 2-Step-Verification and get a “password incorrect” error when you sign in, you can try to use an app password. Go to your...