MyBB Community Forums

Full Version: Change mail header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm trying to edit the mail header at "class_mailhandler" because the MyBB does't sent in mail the contact name (display name of the forum).
A print of the actually structure: http://prntscr.com/c74ji0

If I remove my code, the contact name should be only the sender mail, is possible configure that? Someone know an method without changes at source code?

Actually I did it, but is not the ideal solution.

$this->headers = $headers;
		//$this->headers .= "From: TSSA Brasil <[email protected]>\n\r";
		
		/*if($from)
		{
			$this->from = $from;
		}
		else
		{
			$this->from = "";
			if($mybb->settings['mail_handler'] == 'smtp')
			{
				$this->from = $this->get_from_email();
			}
			else
			{
				$this->from = '"'.$this->utf8_encode($mybb->settings['bbname']).'"';
				$this->from .= " <".$this->get_from_email().">";
			}
		}*/


Regards.