adolph/email

a simple email package

dev-master 2017-10-11 03:21 UTC

This package is auto-updated.

Last update: 2024-10-27 20:10:56 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);