Ticket #1727: x_origin.patch

File x_origin.patch, 519 bytes (added by diegomoreno, 13 years ago)

Patch para exibir 'X-Origin'

  • class.phpmailer.php

     
    972972            if(count($this->cc) > 0) 
    973973                $result .= $this->AddrAppend("Cc", $this->cc); 
    974974        } 
     975                $result .= $this->HeaderLine("X-Origin", isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']); 
    975976 
    976977                if (!$this->SaveMessageAsDraft){ 
    977978                $from = array();