"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/class_mailhandler.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

class_mailhandler.php  (mybb_1822):class_mailhandler.php  (mybb_1823)
skipping to change at line 160 skipping to change at line 160
function build_message($to, $subject, $message, $from="", $charset="", $h eaders="", $format="text", $message_text="", $return_email="") function build_message($to, $subject, $message, $from="", $charset="", $h eaders="", $format="text", $message_text="", $return_email="")
{ {
global $parser, $lang, $mybb; global $parser, $lang, $mybb;
$this->message = ''; $this->message = '';
$this->headers = $headers; $this->headers = $headers;
if($from) if($from)
{ {
$this->from = $from; $this->from = $from;
$this->from_named = $this->from;
} }
else else
{ {
$this->from = $this->get_from_email(); $this->from = $this->get_from_email();
$this->from_named = '"'.$this->utf8_encode($mybb->setting s['bbname']).'"'; $this->from_named = '"'.$this->utf8_encode($mybb->setting s['bbname']).'"';
$this->from_named .= " <".$this->from.">"; $this->from_named .= " <".$this->from.">";
} }
if($return_email) if($return_email)
{ {
$this->return_email = $return_email; $this->return_email = $return_email;
} }
else else
{ {
$this->return_email = "";
$this->return_email = $this->get_from_email(); $this->return_email = $this->get_from_email();
} }
$this->set_to($to); $this->set_to($to);
$this->set_subject($subject); $this->set_subject($subject);
if($charset) if($charset)
{ {
$this->set_charset($charset); $this->set_charset($charset);
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)