Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xinix-technology/bono-mail
Mailer for bono
https://github.com/xinix-technology/bono-mail
Last synced: 3 months ago
JSON representation
Mailer for bono
- Host: GitHub
- URL: https://github.com/xinix-technology/bono-mail
- Owner: xinix-technology
- License: mit
- Created: 2014-06-12T15:01:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-28T05:13:34.000Z (about 10 years ago)
- Last Synced: 2024-04-09T02:44:27.115Z (7 months ago)
- Language: PHP
- Size: 159 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xinix - bono-mail - Bono 1 mailer - [reekoheek](https://github.com/reekoheek) (Grouping / PHP)
README
bono-mail
=========Mailer for Bono
Its simply thin wrapper to SwiftMailer now.
With bono-mail you can utilize bono configuration to bootstrap your mailer.
# Installlation
```
composer require xinix-technology/bono-mail
```# Configuration
Edit config/config.php
```php
return array(
'bono.providers' => array(
// ...
'\\BonoMail\\Provider\\MailProvider' => array(
'defaultMessage' => array(
'from' => array('[email protected]' => 'John Doe'),
),
'transports' => array(
'smtp' => array(
'driver' => 'smtp',
'host' => 'localhost',
'port' => 25,
),
),
),
// ...
),
);```
# Howto Use
```php
$result = \BonoMail\Mail::factory('Some subject for you')
->body('test', array())
->to(array('[email protected]'))
->send();```
Above code will send mail to [email protected] from default from (from configuration)
with body from emails/test template.