1--TEST-- 2Test mail() function : basic functionality 3--INI-- 4sendmail_path="exit 1" 5--SKIPIF-- 6<?php 7if(substr(PHP_OS, 0, 3) == "WIN") 8 die("skip Won't run on Windows"); 9?> 10--FILE-- 11<?php 12echo "*** Testing mail() : basic functionality ***\n"; 13 14 15// Initialise all required variables 16$to = 'user@example.com'; 17$subject = 'Test Subject'; 18$message = 'A Message'; 19 20echo "-- failure --\n"; 21var_dump( mail($to, $subject, $message) ); 22?> 23--EXPECT-- 24*** Testing mail() : basic functionality *** 25-- failure -- 26bool(false) 27