PHP code example of sebastiankennedy / laravel-mail-ali-cloud-direct-mail

1. Go to this page and download the library: Download sebastiankennedy/laravel-mail-ali-cloud-direct-mail library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sebastiankennedy / laravel-mail-ali-cloud-direct-mail example snippets


MAIL_DRIVER=ali_cloud_direct_mail

[
    '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),
    ],
]