Hello I'm using PHP built in php mail() and using this function s=to send emails :
function sendEmail($to,$subject,$message){
$header = 'From: noreply@xxxxx.com' . "\r\n" .
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html' . "\r\n" ;
$retval = mail ($to,$subject,$message,$header);
if( $retval == true ){
return true;
}
else{
return false;
}
}
This function is sending emails but I do receive them not from the "From email" header I set : "noreply@xxxxx.com" but from my host server like this : xxx@host205.hostmonster.com
Why this is not working as I want?
Thanks