PHP code example of szjcomo / email
1. Go to this page and download the library: Download szjcomo/email 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/ */
szjcomo / email example snippets
$options = ['user'=>'[email protected]','password'=>'xxxx','FromName'=>'xxx信息科技有限公司发来的邮件'];
Emailer::send('[email protected],[email protected]','这是一封测试邮件','这是一封测试邮件');
$options = ['user'=>'[email protected]','password'=>'xxxx','FromName'=>'xxx信息科技有限公司发来的邮件','addAttachment'=>['test.html'=>'./static/index.html']];
Emailer::send('[email protected],[email protected]','这是一封测试邮件','这是一封测试邮件')