audi2014/smtp-mailer

This package is abandoned and no longer maintained. No replacement package was suggested.

send push notifications to fcm and apns in same interface

v1.0.0 2018-09-03 09:44 UTC

This package is not auto-updated.

Last update: 2023-01-18 06:49:07 UTC


README

require "vendor/autoload.php";

use Audi2014\SmtpMailer\SmtpMailer;
$to = "______@_________";
$emailString = "emailString";
$subject = "subject";
$mailer = new SmtpMailer([
    SmtpMailer::CONFIG_FROM => "____________@_________",
    SmtpMailer::CONFIG_HOST => "smtp._________.___",
    SmtpMailer::CONFIG_PORT => 587,
    SmtpMailer::CONFIG_SECURE => "___",
    SmtpMailer::CONFIG_LOGIN => "____________@_________",
    SmtpMailer::CONFIG_PASSWORD => "_______________",
    SmtpMailer::CONFIG_LOGGER => 'html',
]);
echo $mailer->mailToUsers([$to], $emailString, $subject, $_FILES) ? 'ok' : 'error';