Configure Amazon SES on Laravel 5.8 in 5 minutes

1 — Create an AWS Account (if you do not have one yet)

2 — Add a new domain

Add a new domain
  • 1 TXT field
  • 3 CNAME fields
  • 1 MX field

3 — Add an email address

4 — Create an IAM user and API keys

Add IAM user
Search the AmazonSESFullAccess policy

5 — Configure the Laravel

'ses' => [
'key' => env('SES_KEY'),
'secret' => env('SES_KEY_SECRET'),
'region' => env('SES_REGION'),
],
SES_KEY=key_from_AWS
SES_KEY_SECRET=secret_key_from_AWS
SES_REGION=region_from_AWS

6 — Test of an email sending

php artisan make:mail TestAmazonSes
TestAmazonSes.php
tpl.blade.php
Route::get('test', function () {
Mail::to('email@doe.com)->send(new TestAmazonSes('It works!'));
});

--

--

Engineering student — 🔧 cryptalert.com & carlapp.co

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store