nguyenanhung / mailer-sdk
Mailer SDK: Helper, Library and Quick Service - Basic, Simple and Lightweight
Installs: 6 762
Dependents: 5
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
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 Project
Simple Class send Email use SMTP
Version
- V1.x, V2.x support all PHP version
>=5.5
- V3.x support all PHP version
>=7.0
Setup Guide
<?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>";
Contact
If any question & request, please contact following information
From Hanoi with Love <3