Search code examples
laraveldigital-oceanemailnamecheap

What's the best solution for my laravel project to send "forgotten password" emails?


I'm in the middle of deploying my project, and the last part is getting the "forgotten password" system to work. Currently, without any mail configuration, I get the error

Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required "

I have bought my domain through namecheap.com and hosting on digitalocean.com.

My .env mail config currently looks like this

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

, which obviously isn't supposed to work.

Where do I go to get a mail username and password? Thanks.


Solution

  • I ended up going with mailgun's free option for now. It seems to work fine so far!