Lines Matching refs:mail
2 Test mail() function : error conditions
5 /* Prototype : int mail(string to, string subject, string message [, string additional_headers [, …
7 * Source code: ext/standard/mail.c
11 echo "*** Testing mail() : error conditions ***\n";
14 //Test mail with one more than the expected number of arguments
15 echo "\n-- Testing mail() function with more than expected no. of arguments --\n";
22 var_dump( mail($to, $subject, $message, $additional_headers, $additional_parameters, $extra_arg) );
24 // Testing mail with one less than the expected number of arguments
25 echo "\n-- Testing mail() function with less than expected no. of arguments --\n";
28 var_dump( mail($to, $subject) );
33 *** Testing mail() : error conditions ***
35 -- Testing mail() function with more than expected no. of arguments --
37 Warning: mail() expects at most 5 parameters, 6 given in %s on line %d
40 -- Testing mail() function with less than expected no. of arguments --
42 Warning: mail() expects at least 3 parameters, 2 given in %s on line %d