SendGrid sends email in two ways:- SMTP relay and Web API. SendGrid provides client libraries in many languages. SMTP has many features by default but is hard to set up. It also provides a tracking mail API. SendGrid manages all the technical details, from scaling the infrastructure to ISP outreach and reputation monitoring to services and real-time analytics.
Step by step guide on integration of SendGrid:
Create an Account on SendGrid
If you don't have an account on the SendGrid platform. you should create one Click HereConfigure SendGrid credentials to an application
You can update the env file with SendGrid credentials. Look at the below code after revising the env file
MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=XXXXXXXXXXX
MAIL_PASSWORD=XXXXXXXXXXX
Oldest comments (0)