apache - PHP mail will only send with two recipients -
using php mail() function on server client
when do:
mail("name@domain.com",$sub,$body,$head);
it fails (returns nothing , not sent)
if do:
mail("name@domain.com,x",$sub,$body,$head);
it works fine
i have set this, client can work
mail("name@domain.com,no-reply@domain.com",$sub,$body,$head);
which not great solution, ideas?
thanks andy
if second senario works fine in case can use
$receivers = array( "name@domain.com", "no-reply@domain.com" ); foreach ($receivers $receiver) { // send email 1 one recipients mail("$receiver,x",$sub,$body,$head); } ?>
Comments
Post a Comment