A PHP Library for the Tencent Mail
关注项目作者微信订阅号,接收项目最新动态。
To Use the package, simply:
$ composer require khs1994/tencent-mail
For latest commit version:
$ composer require khs1994/tencent-mail dev-master
<?php
require __DIR__.'/vendor/autoload.php';
$config = [];
$mail = new \TencentMail\TencentMail($config);
// get login url
$mail->login->getLoginUrl('khs1994@khs1994.com');
$ php artisan vendor:publish --tag=config
Then edit config file config/tencent-mail.php
<?php
\TencentMail::login()->getLoginUrl('khs1994@khs1994.com');
Powered By khs1994-docker/lnmp