nguyenanhung/mailer-sdk
Mailer SDK:助手、库和快速服务 - 基础、简单和轻量级
v3.1.1
2024-09-21 18:32 UTC
Requires
- php: ^7.0 || ^8.0
- phpmailer/phpmailer: ^6.5
Suggests
- ext-intl: Needed to support internationalized email addresses
- ext-mbstring: Needed to send email in multibyte encoding charset or decode encoded addresses
- hayageek/oauth2-yahoo: Needed for Yahoo XOAUTH2 authentication
- league/oauth2-google: Needed for Google XOAUTH2 authentication
- psr/log: For optional PSR-3 debug logging
- stevenmaguire/oauth2-microsoft: Needed for Microsoft XOAUTH2 authentication
- symfony/polyfill-mbstring: To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)
README
Mailer 项目
使用SMTP发送电子邮件的简单类
版本
- V1.x, V2.x 支持所有PHP版本
>=5.5
- V3.x 支持所有PHP版本
>=7.0
设置指南
<?php require_once __DIR__ . '/vendor/autoload.php'; $sampleConfig = [ 'hostname' => '', 'port' => '', 'username' => '', 'password' => '', 'from' => '', ]; $mailer = new \nguyenanhung\MailerSDK\Mailer(); $mailer->setConfig($sampleConfig); $mailer->setFrom() ->setTo() ->setCc() ->setBcc() ->setSubject() ->setBody() ->setContentType(); $mailer->send(); $result = $mailer->getResult(); echo "<pre>"; print_r($result); echo "</pre>";
联系方式
如有任何疑问和请求,请通过以下信息联系
来自河内的爱 <3