Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ivymasterman's avatar

Laravel Vapor email environment setup

Hello, does laravel vapor only supports SES for emails or we can use any kind of service?

I am trying to setup this https://sendgrid.com/ service (it worked on normal cpanel) but here I get this error in aws:

{"message":"Request to AWS SES API failed.","context":{"exception":{"class":"Swift_TransportException","message":"Request to AWS SES API failed.","code":0,"file":"/var/task/vendor/laravel/framework/src/Illuminate/Mail/Transport/SesTransport.php:60","previous":

0 likes
5 replies
martinbean's avatar

@ivymasterman If you’re using Vapor and deploying to AWS then yes, it makes sense to also use SES for sending emails.

martinbean's avatar
Level 80

@ivymasterman Why would it be the only option? You just configure the mailer. Like you would if you app was hosted anywhere else. But it just makes sense to use SES if you’re deploying to AWS via Vapor.

Why deploy most of your infrastructure to AWS… and then use something completely different for emails?

1 like
collinped's avatar

@ivymasterman Laravel Vapor does support all the email drivers. Make sure you've installed the specific composer package for the email driver through, "symfony/sendgrid-mailer".

Also, double-check your .env variables that your config/mail.php is using MAIL_MAILER. This was ported into Laravel 8 I believe and can throw you for a loop. To play it safe in your Vapor ENV variables, set

MAIL_MAILER=sendgrid
MAIL_DRIVER=sendgrid
1 like

Please or to participate in this conversation.