Using mail()
function i can send one email without a problem. But when i try to send a second email I receive the first but not the second.
$s1 = mail("info1@domain.com", $subject, $message, $headers);
$s2 = mail("info2@domain.com", $subject, $message, $headers);
$s3 = $s1 && $s2;
And $s3
is TRUE
.
I have tried sending two email in one mail call:
mail("info1@domain.com, info2@domain.com", $subject, $message, $headers);
Still only the first is sent but not the second. How i can solve it? Of course the email addresses are all valid and none are in spam folders.