Using Laravel Queue and Jobs for Email delivery with Gmail SMTP Server
First clone this repository, install the dependencies, and setup your .env file.
git clone https://github.com/ardirannu/laravel-queue-email.git laravel-queue-email
composer install
cp .env.example .env
Then create the necessary database.
php artisan db
create database email-queue
And run the initial migrations and seeders.
php artisan migrate --seed
Setup SMTP Server.
MAIL_MAILER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
MAIL_USERNAME=your gmail adresss
MAIL_PASSWORD=your gmail password
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=admin@queue-tes.com
MAIL_FROM_NAME="${APP_NAME}"
Technologies used in the project:
- Laravel
- SMTP server
Ardianto Rannu