includes/email.php
changeset 1081 745200a9cc2a
parent 801 eb8b23f11744
child 1227 bdac73ed481e
equal deleted inserted replaced
1080:6358f769ecb1 1081:745200a9cc2a
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.1.6 (Caoineag beta 1)
     5  * Copyright (C) 2006-2009 Dan Fuhry
     6  * Copyright (C) 2006-2008 Dan Fuhry
       
     7  *
     6  *
     8  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     7  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
     8  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  *
     9  *
    11  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    10  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
   245 
   244 
   246     if ( $mimetype == "message/rfc822" )
   245     if ( $mimetype == "message/rfc822" )
   247     {
   246     {
   248       $this->mimeOut .= "From: ".$szFromAddress."\n";
   247       $this->mimeOut .= "From: ".$szFromAddress."\n";
   249       $this->mimeOut .= "To: ".$this->emailAddress."\n";
   248       $this->mimeOut .= "To: ".$this->emailAddress."\n";
   250       $this->mimeOut .= "Date: ".enano_date("D, d M Y H:i:s") . " UT\n";
   249       $this->mimeOut .= "Date: ".enano_date('r') . " UT\n";
   251       $this->mimeOut .= "Reply-To:".$szFromAddress."\n";
   250       $this->mimeOut .= "Reply-To:".$szFromAddress."\n";
   252       $this->mimeOut .= "Subject: ".$this->mailSubject."\n";
   251       $this->mimeOut .= "Subject: ".$this->mailSubject."\n";
   253       $this->mimeOut .= "X-Mailer: PHP/".phpversion()."\n";
   252       $this->mimeOut .= "X-Mailer: PHP/".phpversion()."\n";
   254       $this->mimeOut .= "MIME-Version: 1.0\n";
   253       $this->mimeOut .= "MIME-Version: 1.0\n";
   255     }
   254     }