Page 1 of 1

[Snippet] Site name in "From" address in emails

Posted: 02 Dec 2011, 10:09
by doktornotor
Credits: AmigoJack

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;
Replace with:

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'] . '>';
		}

[Snippet] Site name in "From" address in emails

Posted: 02 Dec 2011, 11:43
by Stoker
Installed here. Lets see if it working :)

[Snippet] Site name in "From" address in emails

Posted: 02 Dec 2011, 12:42
by Blackwolf
Works perfectly ;)
Email test.png