To send mail through Amazon SES on Laravel 13, install the AWS SDK, set MAIL_MAILER=ses, and put your AWS credentials in .env. There is no SMTP host, port, username, or password involved — the ses transport calls the AWS API directly:
composer require aws/aws-sdk-php
MAIL_MAILER=ses
MAIL_FROM_ADDRESS="you@yourdomain.com"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=AKIA...
AWS_SECRET_ACCESS_KEY=...
AWS_DEFAULT_REGION=us-east-1
Two things sink most setups and neither is a config typo: new SES accounts are sandboxed and can only send to addresses you have verified, and the region in AWS_DEFAULT_REGION must be the region where you verified the identity. Both are covered below.
Table of Contents
Settings that do nothing with the ses mailer
- Setting
MAIL_DRIVER=sesand giving SMTP settings (MAIL_HOST=email-smtp.us-west-2.amazonaws.com,MAIL_PORT=587,MAIL_USERNAME,MAIL_PASSWORD) produces a config that cannot work. Those are two different integrations: SES SMTP usesMAIL_MAILER=smtpwith SES SMTP credentials, while thesestransport ignores all of those keys and readsAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY. MAIL_DRIVERbecameMAIL_MAILERin Laravel 7, andMAIL_ENCRYPTIONbecameMAIL_SCHEME. Greppingconfig/andvendor/laravel/framework/src/for the old keys returns nothing, so setting them does nothing at all.
What Laravel 13 already ships
You do not need to create the SES credentials block. config/services.php ships with it:
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
The AWS SDK is not bundled. Skip composer require aws/aws-sdk-php and the failure is immediate and unmistakable — this is the real output of a send attempt on a clean Laravel 13.24.0 install:
$ php artisan tinker --execute='Mail::raw("t", fn($m)=>$m->to("a@b.test")->subject("s"));'
Error: Class "Aws\Ses\SesClient" not found
ses vs ses-v2
Laravel 13 ships both transports, and they are not the same call. Reading Illuminate\Mail\MailManager and the two transport classes:
sesbuilds anAws\Ses\SesClientand callssendRawEmail()— the SES v1 API.ses-v2builds anAws\SesV2\SesV2Clientand callssendEmail()— the SES v2 API.
Only ses is pre-wired. The shipped mailer keys are smtp, ses, postmark, resend, sendmail, log, array, failover, roundrobin — no ses-v2 entry, even though the file’s own comment lists it as supported. Setting MAIL_MAILER=ses-v2 without adding the block fails:
InvalidArgumentException: Mailer [ses-v2] is not defined.
Add it to the mailers array in config/mail.php:
'ses-v2' => [
'transport' => 'ses-v2',
],
With the block present and the SDK still absent, the error changes to Class "Aws\SesV2\SesV2Client" not found — which is how you can confirm offline that the transport really is reaching for the v2 client. Prefer ses-v2 for new work: v2 is the API AWS documents features against, including SES tenants and the ConfigurationSetName and EmailTags options Laravel forwards from your options array.
Sandbox mode: the reason correct config sends nothing
Per the AWS production access documentation, every new SES account starts in the sandbox, and “the sandbox status for your account is unique per each AWS Region.” While sandboxed:
- You can only send to verified email addresses and domains, or to the SES mailbox simulator.
- Maximum 200 messages per 24-hour period.
- Maximum 1 message per second.
So a perfectly configured app will accept the send, return a message ID, and deliver nothing to an unverified recipient. Request production access from the SES console under Account dashboard, or via the CLI:
aws sesv2 put-account-details \
--production-access-enabled \
--mail-type TRANSACTIONAL \
--website-url https://example.com \
--additional-contact-email-addresses info@example.com \
--contact-language EN
AWS states an initial response within 24 hours. Note that leaving the sandbox does not remove the sender requirement: you still have to verify every identity used as From, Source, Sender, or Return-Path.
Identity verification and DKIM
Verify a domain rather than individual addresses unless you are just testing. Per the AWS identity documentation, verifying example.com covers every subdomain and address under it. Domain verification is DKIM-based: Easy DKIM gives you three CNAME records to publish, and DNS changes can take up to 72 hours to propagate. Note that domain names are case-insensitive but email addresses are case sensitive.
Region mismatch
This is the second silent failure. AWS is explicit: “To send email from the same domain or email address in more than one AWS Region, you must create and verify a separate identity for each Region.” Verifying example.com in us-east-1 while AWS_DEFAULT_REGION=eu-west-1 leaves you unverified and sandboxed in eu-west-1, with config that looks correct. Check the region selector in the SES console matches your .env before debugging anything else.
IAM permissions
Do not attach an admin policy. AWS’s own least-privilege example for send-only access grants exactly two actions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ses:SendEmail",
"ses:SendRawEmail"
],
"Resource": "*"
}
]
}
The ses: namespace is shared across both API versions, which is why both actions appear together even though your app calls only one. Tighten Resource from * to the ARNs of the identities the app may send from; a ses:ApiVersion condition key can pin it to v2. On EC2, ECS, or Lambda, attach the policy to an instance/task role and drop the static keys from .env — Laravel’s SES config also accepts a token key (AWS_SESSION_TOKEN) for temporary credentials.
Which SES advice ran and which comes from AWS docs
Verified by running it on PHP 8.5.8 against a clean composer create-project laravel/laravel (Laravel 13.24.0): the shipped config/services.php SES block, the shipped mailer key list, the absence of MAIL_DRIVER and MAIL_ENCRYPTION, both missing-class errors, the Mailer [ses-v2] is not defined error, and the transport-to-SDK-client mapping in the framework source. A script repeats those checks in a throwaway Laravel app that it builds and deletes itself; claims that need real AWS credentials it reports as skipped.
Not verified here: no email was actually sent. This machine has no AWS credentials, so sandbox enforcement, IAM policy evaluation, DKIM propagation, region-mismatch rejection, and the production-access request are reported from the AWS documentation linked above and are not backed by a transcript. Treat the sandbox, identity, region, and IAM sections as documentation-based; treat the Laravel config and package sections as executed.