duncan3dc / mailer
A simple mailer abstraction with a clean interface
Installs: 44 496
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: ^7.3 || ^8.0
- duncan3dc/blade: ^4.0
- egulias/email-validator: ^3.2
- swiftmailer/swiftmailer: ^6.0
Requires (Dev)
- duncan3dc/object-intruder: ^0.3 || ^1.0
- mockery/mockery: ^1.4.4
- phpunit/phpunit: ^8.5.29
README
A simple mailer abstraction for PHP with a clean interface
Full documentation is available at http://duncan3dc.github.io/mailer/
PHPDoc API documentation is also available at http://duncan3dc.github.io/mailer/api/
Quick Example
Send an email using the local mail server:
(new \duncan3dc\Mailer\Server) ->createMessage() ->withFromAddress("admin@example.com", "Administrator") ->withRecipient("user@example.com", "Your Name") ->withSubject("Test Email") ->withContent("Hello") ->withAttachment("/tmp/UGqucq", "sensible-filename.xls") ->send();
Read more at http://duncan3dc.github.io/mailer/
Changelog
A Changelog has been available since version 2.0.0
Where to get help
Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter
duncan3dc/mailer for enterprise
Available as part of the Tidelift Subscription
The maintainers of duncan3dc/mailer and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.