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

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

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

Post 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

Post by Stoker »

Installed here. Lets see if it working :)

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

Post by Blackwolf »

Works perfectly ;)
Email test.png
You do not have the required permissions to view the files attached to this post.