Simple Class send Email use SMTP
- V1.x, V2.x support all PHP version
>=5.6
- V3.x support all PHP version
>=7.0
// Sample Config Email
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();
If any question & request, please contact following information
Name | Skype | ||
---|---|---|---|
Hung Nguyen | dev@nguyenanhung.com | nguyenanhung5891 | @nguyenanhung |
From Hanoi with Love <3