Package Data | |
---|---|
Maintainer Username: | jacksunny2020 |
Maintainer Contact: | jacksunny2020@126.com (jacksunny) |
Package Create Date: | 2017-06-07 |
Package Last Update: | 2017-06-09 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-22 03:00:24 |
Package Statistics | |
---|---|
Total Downloads: | 8 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
laravel framework mailer plugin which based on AliyunMail
completed setting from user domain dns manage(like MX record),and,completed creating from user account(like service@xx.com) under Aliyun Controller Panel
please check exist line "minimum-stability": "dev" in composer.json if failed
'driver' => env('MAIL_DRIVER', 'aliyunmail'), 'aliyunmail' => [ 'region' => 'cn-hangzhou', 'key' => 'APPKEYAPPKEY', 'secret' => 'APPSECRETAPPSECRETAPPSECRET', ],
set default mailer to aliyunmail in file .env
MAIL_DRIVER=aliyunmail
append new service provider file line in the section providers of file app.config after appended,it should looks like 'providers' => [ Illuminate\Auth\AuthServiceProvider::class, ...... Jacksunny\AliyunMailer\ExtendedMailServiceProvider::class, ],
add route to test if it works,run http://localhost/sendalimail after route defined below
Route::get("/sendalimail", function() { $result = Mail::raw('这里填写邮件的内容', function ($message) { // 发件人(你自己的邮箱和名称) $message->from('service@xxx.com', 'laravel'); // 收件人的邮箱地址 $message->to('dest@yyy.com'); // 邮件主题 $message->subject('test at 20170608'); }); return $result; });
please notify me if you got any problem or error on it,thank you!