Code-igniter: I am using simple mail() function in cron job, but in mail its showing via crystal url name server in from section??
In mail its showing like:
from: Domain Name <noreply@domainname.com> via crystal.urlnameserver.com
My code snippet:
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: Domain Name <noreply@domainname.com>' . "\r\n";
....
mail($mailId, $subject, $mentor_message, $headers);
Why its showing "via....." text?? please suggest me the changes??
I didn't mention it anywhere, then why its coming like that?
My cron job is in pure core-php.