I just wanna know what's the php code to send two emails in a same time
I have this code:
$email1 = "....etc....";
$headers1 = ".... etc...";
$subject1 = "....etc...";
$message1 = "....etc...";
$email2 = "....etc....";
$headers2 = ".... etc...";
$subject2 = "....etc...";
$message2 = "....etc...";
mail($email1, $subject1, $message1, $headers1) or die('Failed');
mail($email2, $subject2, $message2, $headers2) or die('Failed');
but it doesn't work, why?