예제 #1
0
    private function RFCDate()
    {
        $tz = date("Z");
        $tzs = $tz < 0 ? "-" : "+";
        $tz = abs($tz);
        $tz = $tz / 3600 * 100 + $tz % 3600 / 60;
        $result = sprintf("%s %s%04d", date("D, j M Y H:i:s"), $tzs, $tz);
        return $result;
    }
    private function fixEOL($str)
    {
        $str = str_replace("\r\n", "\n", $str);
        $str = str_replace("\r", "\n", $str);
        $str = str_replace("\n", $this->LE, $str);
        return $str;
    }
    private function wrapText($str)
    {
    }
}
class Part
{
    private $contentType = "";
}
class User
{
    public $email = '*****@*****.**';
}
ApplicationMailer::create('signupNotification', new User());
ApplicationMailer::deliver();