Skip to content

Instantly share code, notes, and snippets.

@till
Created February 10, 2011 14:41
Show Gist options
  • Save till/820624 to your computer and use it in GitHub Desktop.
Save till/820624 to your computer and use it in GitHub Desktop.
mail-flag.phpt
--TEST--
mail(): returns false when sendmail_path contains a -f flag and we use additional_params with one
--INI--
sendmail_path=/usr/sbin/sendmail -t -i -f [email protected]
--FILE--
<?php
var_dump(mail('[email protected]', 'subject', 'message', 'From: [email protected]', '[email protected]'));
?>
--EXPECT--
bool(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment