2

I have a question, actually, I'm developing a web site using laravel 7 and I successfully make an email verification and password reset functionality using mailtrap.io; but all theses just in localhost, I'm wondering if there is any other way to use it in the production side because I want users to receive the email verification and password reset response on them's email not on mailtrap website. here is an image shows the email verification and password reset response enter image description here

  • 1
    Yes, you just need to change (and set up) the mail driver. There are a number of options. https://laravel.com/docs/8.x/mail#driver-prerequisites – ceejayoz Jan 02 '21 at 21:31

1 Answers1

0

You can use sendgrid.com for mail delivery. Make sure you configure DNS correctly before using it and configure the White Label correctly for you Domain.

.env

MAIL_MAILER=smtp
MAIL_HOST=smtp.sendgrid.com
MAIL_PORT=465
MAIL_USERNAME=apikey
MAIL_PASSWORD=your_api_key_here
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=no-reply@yourdomain.com
MAIL_FROM_NAME="${APP_NAME}"
Neftalí Yagua
  • 360
  • 3
  • 10