Quote:
Originally Posted by tahirfayyaz
I cant find that. This is what I have in func.php at the moment
$m_from = $from;
if ($config["Email"]["use_base64_headers"] == "Y")
$mail_subject = func_mail_quote($mail_subject,$charset);
|
Which version are you modifying? Your signature says you are on 4.1. func.php doesn't exist on 4.1. If you are modifying a 4.0 version use the first change I posted.
Also, after a closer look there are two places to change. Both are in func.php for 4.0 and func.mail.php in 4.1. The functions within those files are func_send_mail and func_send_simple_mail. The changes for func_send_mail for the two different versions are posted above. For func_send_simple mail in either version look for this:
Code:
else {
$m_from = $from;
$m_subject = $subject;
}
And replace it with this:
Code:
else {
$m_from = $from;
$m_subject = $subject;
}
switch ($m_from) {
case $config["Company"]["users_department"]:
case $config["Company"]["site_administrator"]:
case $config["Company"]["orders_department"]:
case $config["Company"]["support_department"]:
case $config["Company"]["newsletter_email"]:
$m_from = $config["Company"]["company_name"].'<'.$m_from.'>';
break;
}