Lines Matching refs:mail
2 Test mail() function : array extra header basic functionality
5 mail.add_x_header = Off
10 echo "*** Testing mail() : basic functionality ***\n";
31 // Calling mail() with all additional headers
33 var_dump(mail($to, $subject, $message, $additional_headers));
45 mail($to, $subject, $message, ['orig-date' => array('foo1')]);
51 mail($to, $subject, $message, ['from' => array('foo2')]);
57 mail($to, $subject, $message, ['sender' => array('foo3')]);
63 mail($to, $subject, $message, ['reply-to' => array('foo4')]);
69 mail($to, $subject, $message, ['to' => array('foo5')]);
75 mail($to, $subject, $message, ['bcc' => array('foo6')]);
81 mail($to, $subject, $message, ['message-id' => array('foo7')]);
87 mail($to, $subject, $message, ['in-reply-to'=> array('foo8')]);
100 mail($to, $subject, $message, ['foo1' => array('foo2'=>'bar1')]);
106 mail($to, $subject, $message, ['foo2' => array('foo2', array('foo3'))]);
112 mail($to, $subject, $message, ['foo3' => array(123)]);
118 mail($to, $subject, $message, ['foo4' => array(123.456)]);
124 mail($to, $subject, $message, ['foo5' => array(FALSE)]);
130 mail($to, $subject, $message, ['foo6' => array(NULL)]);
136 mail($to, $subject, $message, ['foo7' => array(new StdClass)]);
152 mail($to, $subject, $message, ['*:foo1' => array('bar1')]);
158 mail($to, $subject, $message, ['foo2:::' => array('bar1')]);
164 mail($to, $subject, $message, ['foo3()' => array('bar1')]);
170 mail($to, $subject, $message, ['foo4@' => array('bar1')]);
176 mail($to, $subject, $message, ['foo5|' => array('bar1')]);
182 mail($to, $subject, $message, ["\0foo6" => array('bar1')]);
188 mail($to, $subject, $message, ["foo7\0" => array('bar1')]);
194 mail($to, $subject, $message, ["foo8" => array()]);
199 var_dump(mail($to, $subject, $message, ["foo9" => '%&$#!']));
204 mail($to, $subject, $message, ["foo10" => "abc\0\tdef"]);
211 *** Testing mail() : basic functionality ***