2017 © Pedro Peláez
 

library better-mail

Override PHP mail() with a better solution

image

travier/better-mail

Override PHP mail() with a better solution

  • Thursday, June 7, 2018
  • by Travier
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BetterMail

Override PHP mail() with a different sending solution, (*1)

PHP RunKit extention is required https://gist.github.com/tortuetorche/6700217, (*2)

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., (*3)

Simple Example:


Replace mail() with Mailgun interface:

setFromAddress("test@gmail.com");
//override mail() to use Mailgun interface;
$mail->override();

mail("test@gmail.com", "Testing", "Hello");
?>

The Versions

07/06 2018

dev-master

9999999-dev

Override PHP mail() with a better solution

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travier Moorlag