[Snippet] Site name in "From" address in emails
Posted: 02 Dec 2011, 10:09
Credits: AmigoJack
Open:
Find:
Replace with:
Open:
includes/functions_messenger.php
Find:
Code: Select all
if (empty($this->replyto))
{
$this->replyto = '<' . $config['board_contact'] . '>';
}
if (empty($this->from))
{
$this->from = '<' . $config['board_contact'] . '>';
}
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;
Code: Select all
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;
if (empty($this->replyto))
{
$this->replyto = mail_encode($config['sitename'], $encode_eol) . ' <' . $config['board_contact'] . '>';
}
if (empty($this->from))
{
$this->from = mail_encode($config['sitename'], $encode_eol) . ' <' . $config['board_contact'] . '>';
}