Answer the question
In order to leave comments, you need to log in
Laravel sending mail on localhost?
Hello, I am developing a laravel application on local hosting. I have not worked with mail yet, now when I register a new user, I need to send him a letter by mail. And also learn how to send just other letters.
Prompt please:
1) How to work with sending on a local host?
2) As I understand it, you need a driver to send, which one to choose in order to send to different types of mailboxes on a real host?
It is desirable to have a solution so that you can test on the localhost, and then change the .env connection parameters and send it from the real host (when I upload the site there)
Answer the question
In order to leave comments, you need to log in
Mailtrap
This is how your env config will look, only your username and password that you will receive upon registration
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=09qpbn2b8bb839
MAIL_PASSWORD
=902vv2988d2ea3 MAIL_ENCRYPTION
=null mailtrap.io
Then, in production, write down your settings from real mail and go ahead
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question