Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 7- How do I send emails in laravel using SendinBlue?

Tags:

laravel

I am trying to send emails in Laravel using the Sendinblue API but the problem is, I don't know how to configure the files (.env file, config/mail file,etc.)

Here are the details that I have (that are registered in sendinblue). I edited some data so that the important details are not visible.

Email address registered in [email protected]

Company/organisation registered in sendinblue -xxxxOrganization

Sendinblue details page 1

enter image description here

Sendinblue details page 2

enter image description here

Other email services have proper Laravel documentations, but since we are testing, we need free email services for a few emails. And we preferred sendinblue for our tests as well.

like image 546
Skumar Avatar asked Oct 19 '25 16:10

Skumar


1 Answers

First, I have to email sendinblue support to Activate Sendinblue SMTP account. Make sure that yours is activated.

Then, here is the config that worked for me:

    MAIL_DRIVER=smtp
    MAIL_HOST=smtp-relay.sendinblue.com
    MAIL_PORT=587
    [email protected]
    MAIL_PASSWORD="master_password_or_smtp_key_value"
    MAIL_FROM_ADDRESS="[email protected]"

where: MAIL_USERNAME is the "Login" value in "Your SMTP settings" (not SMTP Key Name) MAIL_PASSWORD is either Master password or SMTP Key Value

like image 66
Hoang Viet Nguyen Avatar answered Oct 22 '25 07:10

Hoang Viet Nguyen