vakata / mail
A few simple mail sender classes
Installs: 3 890
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
Requires (Dev)
- clean/phpdoc-md: dev-master
- phpunit/phpunit: 4.*
README
A few simple mail sender class.
Install
Via Composer
$ composer require vakata/mail
Usage
// build the message $mail = new \vakata\mail\Mail(); $mail ->setFrom('Name Family <mail@domain.tld>') // or simply an email ->setSubject('Testmail') // unicode is fine too ->setMessage('Check this pic out <img src="http://url.to/pic" />') ->setTo(['first@recipient.tld', 'Second Person <second@recipient.tld>']) ->setCc('mail@domain.tld') ->setBcc('bcc@domain.tld'); // send the message $sender = new \vakata\mail\driver\SMTPSender('ssl://user:pass@host:port'); // PHP mail() is also supported: // $sender = new \vakata\mail\driver\MailSender(); $sender->send($mail); // return an array of good and bad emails
Read more in the API docs
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email github@vakata.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.