[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
User avatar
doktornotor Offline
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 21:20
Local time: Saturday 21:44
Last active: -
Favourite EXT: Thanks for Posts

[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'] . '>';
		}
Support requests via PM go straight to /dev/null!
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,294
Joined: 12 May 2008, 21:26
Local time: Saturday 22:44
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

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

Post by Stoker »

Installed here. Lets see if it working :)
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Blackwolf Offline
BBCoder IV
BBCoder IV
Posts: 272
Joined: 04 Dec 2010, 10:36
Local time: Sunday 07:44
Last active: -
Favourite BBCode: Dropcap
Favourite EXT: mchat
Location: Melbourne Australia

[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.
Ultimate Edition, Ultimate Edition Oz, Oz Unity

“We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.”