PHP code example of musingsz / aliyun-push-mail

1. Go to this page and download the library: Download musingsz/aliyun-push-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/ */

    

musingsz / aliyun-push-mail example snippets


  "musingsz/aliyun-push-mail":"*"
  

'aliyun-mail' => [
	'accessKey' => 'XXXXXXXXXXXXXXX', 
	'accessSecret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXX', 
	'accountName' => '[email protected]', 
	'fromAlias' => 'Crewing'
	]

use Sanyc\Aliyun\AliyunEmail;

$mail = AliyunEmail::init(Yii::$app->params['aliyun-mail'])->send('[email protected]', 'title', 'body')