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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -