adolph / email
a simple email package
dev-master
2017-10-11 03:21 UTC
Requires
- php: ^5.6.1
- phpmailer/phpmailer: ^5.2
This package is auto-updated.
Last update: 2024-11-27 20:24:44 UTC
README
install
composer require adolph/email
using
$settings = [
'host' =>'smtp.163.com',
'username' =>'**********@**.com',
'port' =>25,
'password' =>'********',
];
$mail = new Adolph\Mailer($settings);
$result = $mail->sendMail('1138027478@qq.com','这里是传递的消息','这里是内容');
OR
$mail = new Adolph\Mailer();
$result = $mail->setHost('****')
->setUser('******')
->setPass('*********')
->setPort(25)
->sendMail('1138027478@qq.com','这里是传递的消息','这里是内容');
var_dump($result);