Aliyun Single Send Mail Services for Laravel.
composer require ibrand/laravel-aliyun-mail -vvvIf your Laravel version below 5.5, you need add the follow line to the section providers of config/app.php:
iBrand\AliyunMail\ServiceProvider::class,Set MAIL_DRIVER=aliyunmail in .env file.
- Setting up from the
config/services.phpfile.
'aliyunmail' => [
'access_key' => env('ALIYUN_MAIL_ACCESS_KEY','your aliyun access key'),
'access_secret' => env('ALIYUN_MAIL_ACCESS_SECRET','your aliyun access secret'),
'region' => env('ALIYUN_MAIL_REGION', 'cn-hangzhou','your aliyun mail account region'),
'account_name' => env('ALIYUN_MAIL_ACCOUNT_NAME','your aliyun mail account name'),
'account_alias' => env('ALIYUN_MAIL_ACCOUNT_ALIAS','your aliyun mail account alias')
]- Setting up from
.envfile.
ALIYUN_MAIL_ACCESS_KEY=
ALIYUN_MAIL_ACCESS_SECRET=
ALIYUN_MAIL_REGION=
ALIYUN_MAIL_ACCOUNT_NAME=
ALIYUN_MAIL_ACCOUNT_ALIAS=