In my mail client or gmail the sender is always apache@hosting12
Any way to fix this issue?
I have tried setting the headers like these with no success. Can sombody please help me?
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "From: <'$from'> \r\n";
$headers .= "Reply-To: <'$from'> \r\n";
$headers .= "Return-Path: <'$from'>\r\n";
$headers .= "X-Mailer: PHP \r\n";
or
$headers = "From: $from";
Please remove single quotation mark from around
$fromand use{$from}or you can use following signatures to pass
fromEDIT:
You also want to check
sendmail_fromsetting inphp.inifile.