LaravelPackages.net
Acme Inc.
Toggle sidebar
sebastiankennedy/laravel-mail-ali-cloud-direct-mail

Ali Cloud Direct Mail for Laravel Application.

3.819
1
1.1.1
About sebastiankennedy/laravel-mail-ali-cloud-direct-mail

sebastiankennedy/laravel-mail-ali-cloud-direct-mail is a Laravel package for ali cloud direct mail for laravel application.. It currently has 1 GitHub stars and 3.819 downloads on Packagist (latest version 1.1.1). Install it with composer require sebastiankennedy/laravel-mail-ali-cloud-direct-mail. Discover more Laravel packages by sebastiankennedy or browse all Laravel packages to compare alternatives.

Last updated

laravel-mail-ali-cloud-direct-mail

:e-mail: 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:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. 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

Star History Chart