nguyenanhung/mailer-sdk

Mailer SDK: Helper, Library and Quick Service - Basic, Simple and Lightweight

v3.1.1 2024-09-21 18:32 UTC

README

Latest Stable Version Total Downloads Daily Downloads Monthly Downloads License PHP Version Require

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