mrpck/email
Composer 安装命令:
composer require mrpck/email
包简介
The Email Class Library is a high level wrapper around the SmtpClient.
README 文档
README
The Email Class Library is a high level wrapper around the SmtpClient.
Install
Copy the files under src/ to your program
OR
composer require mrpck/email 1.0.0
Usage
use Mrpck\Email\Email; $mail = (new Email()) ->from('hello@example.com') ->to('you@example.com') ->cc('cc@example.com') //->bcc('bcc@example.com') //->replyTo('fabien@example.com') //->priority(Email::PRIORITY_HIGH) ->subject('Time for PHP Mailer!') //->attach(file_get_contents('test.pdf'), 'test.pdf') //->text('Sending emails is fun again!') ->html('<p>See Twig integration for better HTML integration!</p>'); if(!$mail->Send()) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent'; }
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-12