library mailer
Mailer library
halimonalexander/mailer
Mailer library
- Wednesday, June 6, 2018
- by halimonalexander
- Repository
- 0 Watchers
- 0 Stars
- 6 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 100 % Grown
Mailer
PHPMailer decorator, (*1)
use HalimonAlexander\MailTemplater\Template;
use HalimonAlexander\Mailer\Mailer;
use HalimonAlexander\Mailer\Persons\Recipient;
$config = [
'secure' => 'ssl',
'host' => 'localhost',
'port' => '25',
'address' => 'admin@example.com',
'username' => 'Admin',
'password' => 'mypassword',
];
$mailer = new Mailer($config);
$recipient = new Recipient('recipient@example.com', 'John Smith');
/**
* @var Template $template
*/
$template = ...;
$mailer->doSend($recipient, $template);