PHP code example of overtrue / laravel-mail-aliyun
1. Go to this page and download the library: Download overtrue/laravel-mail-aliyun 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/ */
overtrue / laravel-mail-aliyun example snippets
'directmail' => [
'key' => env('ALIYUN_ACCESS_KEY_ID'),
'secret' => env('ALIYUN_ACCESS_KEY_SECRET'),
'region_id' => env('ALIYUN_REGION_ID'),
'from_address' => env('ALIYUN_FROM_ADDRESS'),
'from_alias' => env('ALIYUN_FROM_ALIAS'),
],
use Overtrue\LaravelMailAliyun\HasTagName;
class VerifyMail extend Mailable{
use HasTagName;
public function build()
{
$this->tagName('alreadyDefinedTag');
return $this->text('mails.verify');
}
}