filmov
tv
MongoDB Laravel #87 | Login/Register (IV) | Test Email Offline via Mailtrap | Send Register Email
![preview_player](https://i.ytimg.com/vi/z2vXswem248/maxresdefault.jpg)
Показать описание
This is Part 87 of the Laravel 11 Tutorial in which we are building the e-commerce website with Laravel as the front end and MongoDB as the back end. We will continue working on the Laravel Login and Register process with default Laravel Web Authentication.
In this part, we will send a welcome/register email offline to the user when a user registers via mailtrap email testing tool.
Please follow the below steps to configure mailtrap email settings:-
1) Register/Login to mailtrap Account :-
2) Update .env file:-
Now we will update the .env file for mail settings that we will receive from the mailtrap account.
MAIL_MAILER=smtp
MAIL_PORT=2525
MAIL_USERNAME=682f5a8f357a74
MAIL_PASSWORD=
MAIL_ENCRYPTION=ssl
MAIL_FROM_NAME="${APP_NAME}"
3) Update register function:-
Update the register function at UserController to add code to send register email.
4) Update UserController files with the below header statement:-
use Illuminate\Support\Facades\Mail;
Now register a new account with any email and check the registration email must come into your mailtrap account.
We will work on the user register email confirmation process in the next video.
Thanks for watching :)
Popular Stack Developers Series that can help you:-
►Join this channel to get the complete source code of all series:
Follow Stack Developers on Social Media to get updates and resolve your queries
#laravel11 #mongodb #mongodbtutorial
Комментарии