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

Viewed 4786

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 sendinblue-xxxx@xxxx.com

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.

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
    MAIL_USERNAME=mylogin@gmail.com
    MAIL_PASSWORD="master_password_or_smtp_key_value"
    MAIL_FROM_ADDRESS="no-reply@mydomain.com"

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

Related