Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Change mail header
#1
Not Solved
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)