PHPackages                             travier/better-mail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. travier/better-mail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

travier/better-mail
===================

Override PHP mail() with a better solution

07PHPCI failing

Since May 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Travier/better-mail)[ Packagist](https://packagist.org/packages/travier/better-mail)[ RSS](/packages/travier-better-mail/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BetterMail
==========

[](#bettermail)

Override PHP mail() with a different sending solution

PHP RunKit extention is required

#### Why do this?

[](#why-do-this)

A fix for legacy PHP codebases that littered mail() throughout the code base. This hack lets you replace the mail() function with a different sending solution rather than refactor the code base.

#### Simple Example:

[](#simple-example)

```
