library mailswifter
Mail swifter is a free mailer built on swiftmailer for html template injection and data parser
abiodun/mailswifter
Mail swifter is a free mailer built on swiftmailer for html template injection and data parser
- Monday, June 18, 2018
- by iamhabbeboy
- Repository
- 1 Watchers
- 1 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
mailswifter
Mail swifter is a free mailer built on swiftmailer for html template injection and data parser., (*1)
Installation
composer require abiodun/mailswifter
Usage
use Abiodun\MailSwifter\MailProvider
index.php
, (*2)
$mail_provider = new MailProvider([
'username' => 'username@gmail.com',
'password' => 'password',
'smtp' => 'smtp.gmail.com',
]);
$mail_provider->from = ['username@gmail.com' => 'Testing MailSwifter'];
$mail_provider->to = ['username@gmail.com', 'username@gmail.com' => 'Mailing'];
$mail_provider->subject = 'New Mail Test';
$file = __DIR__ . '/sample.html';
$data_list = [
'name' => ' ',
'url' => 'http://info.google.com',
'category' => 'Fashion',
];
$resp = $mail_provider->template($file, $data_list);
$resp = $mail_provider->send();
sample.html
, (*3)
This is a sample for the mail
<p> i surely believe this would work so well</p>
<p>Name is: [name] </p>
<p>Url: [url]</p>
<p>Category: [category]</p>
<p>i'm so happy here </p>
dev-master
9999999-dev
Mail swifter is a free mailer built on swiftmailer for html template injection and data parser
Sources
Download
MIT
The Requires
by
Azeez Abiodun
mail
email
template
mailer
v1.0.1
1.0.1.0
Mail swifter is a free mailer built on swiftmailer for html template injection and data parser
Sources
Download
MIT
The Requires
by
Azeez Abiodun
mail
email
template
mailer