Posted on • Originally published atjeroenvanrensen.nl
How to send free emails using Sendinblue
This post was originally published onmy blog.
Many web applications send emails, for example when someone is registered you want to send them a welcome email. Although you can do it for free using theGmail SMTP server, it is more solid to use a service likeSendinblue.
Besides, using Sendinblue you can send300 emails/day, and using Gmail you're limited to only100 emails/day. Unfortunately, I couldn't find good documentation on how to use Sendinblue with Laravel, but I finally got it working so that's why I'm sharing it with you.
Create a Sendinblue email account
Head over to Sendinblue and create an account. Next, go to your account section and in the left sidebar click SMTP & API. Afterwards click at the SMTP tab and finally copy your secret SMTP key value.
Configuring Laravel
After you grabbed your secret key, go to your .env file in your Laravel application. Next, add these values:
MAIL_MAILER=smtpMAIL_HOST=smtp-relay.sendinblue.comMAIL_PORT=587MAIL_USERNAME=john@gmail.comMAIL_PASSWORD=VAO929swI6sRIoaIMAIL_ENCRYPTION=tlsMAIL_FROM_ADDRESS=john@gmail.comMAIL_FROM_NAME="${APP_NAME}"
Be sure to add the email from your Sendinblue account in theMAIL_USERNAME
andMAIL_FROM_ADDRESS
sections, and your secret SMTP key in theMAIL_PASSWORD
section.
That's it! Using Sendinblue you're limited to 300 emails/day on the free plan, and that's more than every other mailing service. If you need to send more emails, their plans start at €19/month or $25/month for 10 000 emails/month.
Top comments(0)
For further actions, you may consider blocking this person and/orreporting abuse