Code:
if($err_flag!=1)
{
$ins_sql="insert into ask_question(from_id,item_id,date,question,to_id) values('$fromid','$item_id','$qst_date','$question','$to_id');";
$ins_row=mysql_query($ins_sql);
$status=1;
$sql="select * from mail_subjects where mail_id = 3";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$mailsubject = $row['mail_subject'];
$mailbody = $row['mail_message'];
$mailto=$user_rec['email'];
$mailbody = ereg_replace("<seller_name>",$seller_name,$mailbody);
$mailbody = ereg_replace("<question>",$question,$mailbody);
$mailbody = ereg_replace("<product_name>",$product_name,$mailbody);
$mailbody = ereg_replace("<buyer_name>",$buyer_name,$mailbody);
$mailbody = ereg_replace("<sitename>",$site,$mailbody);
$mailbody=str_replace("<imgh>" , $mailheader , $mailbody);
$mailbody=str_replace("<imgf>" , $mailfooter , $mailbody);
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Desde: ". $from."\n";
if(mail($mailto,$subject,$mailbody,$headers))
$status = 1;
else
$status = 2;
}
if($status==1)
I had this piece:
$headers .= "
From: ". $from."\n";
and I translated to
$headers .= "
Desde: ". $from."\n";
so ... in my native language as
Desde
I translated "desde" everywhere i saw it, in every php. But now i receive my emails from site differently.
instead of sender name -
mail@mysite.com
i receive now sender
myusername from cpanel
mail@454.hostgator.com ... ?
Where did it go my
mail@mysite.com ? why now i receive mails signed with username instead of
mail@mysite.com ?
I changed that this days and the ones who are working on the script to costumized at well... they are working on the script.
So is my fault or theirs ? Should i change back to From or is ok to let Desde...
that part must not be translated ?
Please reply. Big thank you.