Reconfiguring PHP Mail() Smarty Contact Form

时间秒杀一切 提交于 2019-12-02 12:11:43

If this 'from' address is stored somewhere else, can anyone see where it might be stored or where it is refering to in the code?

I can't tell from the code, but my strong guess would be this file:

include(dirname(__FILE__).'/config/config.inc.php');

Edit:

 if (Mail::Send(intval($cookie->id_lang), 'contact', 'Message from contact form', 
array('{email}' => $_POST['from'], '{message}' => stripslashes($message)), 
$contact->email, $contact->name, $from, (intval($cookie->id_customer) ? 
$customer->firstname.' '.$customer->lastname : $from)))

I can't look closely into the code right now, but replacing either

'{email}' => $_POST['from']

or

$from

by

'{email}' => 'whatever_you_want'

or

'whatever_you_want'

might do the trick.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!