Skip to content

Instantly share code, notes, and snippets.

@f3l1x

f3l1x/phpmailer

Last active May 16, 2016
Embed
What would you like to do?
PHPMAILER for dev server
#!/usr/bin/php
<?php
$input = file_get_contents('php://stdin');
preg_match('|^To: (.*)|', $input, $matches);
$filename = tempnam('/var/log/mail', $matches[1] . '.');
file_put_contents($filename, $input);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.