sebastiankennedy / laravel-mail-ali-cloud-direct-mail
Ali Cloud Direct Mail for Laravel Application.
Installs: 3 698
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- guzzlehttp/guzzle: ^6.3
- laravel/framework: ^5.5
- swiftmailer/swiftmailer: ^6.1
README
📧 Ali Cloud Drirect Mail for Laravel Application.
Installing
$ composer require sebastiankennedy/laravel-mail-ali-cloud-direct-mail -vvv
Usage
.env
MAIL_DRIVER=ali_cloud_direct_mail
services.php
[ 'ali_cloud_direct_mail' => [ 'access_key_id' => env('ALI_CLOUD_DIRECT_MAIL_ACCESS_KEY_ID'), 'access_key_secret' => env('ALI_CLOUD_DIRECT_MAIL_ACCESS_KEY_SECRET'), 'from_alias' => env('ALI_CLOUD_DIRECT_MAIL_FROM_ALIAS'), 'account_name' => env('ALI_CLOUD_DIRECT_MAIL_ACCOUNT_NAME'), 'format' => env('ALI_CLOUD_DIRECT_MAIL_FORMAT', 'JSON'), 'version' => env('ALI_CLOUD_DIRECT_MAIL_VERSION', '2015-11-23'), 'region_id' => env('ALI_CLOUD_DIRECT_MAIL_REGION_ID', 'cn-hangzhou'), 'click_trace' => env('ALI_CLOUD_DIRECT_MAIL_CLICK_TRACE', 0), 'address_type' => env('ALI_CLOUD_DIRECT_MAIL_ADDRESS_TYPE', 1), ], ]
Usage
use Illuminate\Support\Facades\Mail;
...
Mail::to($email)->send($mailable);
...
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT