2016-08-18, 02:40 AM
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.
Regards.
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.