Changeset 394 for trunk/Mail.php


Ignore:
Timestamp:
Mar 2, 2012, 9:01:13 AM (13 years ago)
Author:
chronos
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mail.php

    r393 r394  
    1414  var $aattach = array();
    1515  var $xheaders = array();
    16   var $priorities = array( '1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)' );
     16  var $priorities = array('1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)');
    1717  var $charset = 'us-ascii';
    1818  var $ctencoding = '7bit';
     
    2525  }
    2626
    27   function autoCheck($bool)
    28   {
    29     if($bool) $this->checkAddress = true;
     27  function autoCheck($Bool)
     28  {
     29    if($Bool) $this->checkAddress = true;
    3030      else $this->checkAddress = false;
    3131  }
    3232
    33   function Subject($subject)
    34   {
    35     $this->xheaders['Subject'] = strtr( $subject, "\r\n" , "  " );
     33  function Subject($Subject)
     34  {
     35    $this->xheaders['Subject'] = strtr($Subject, "\r\n" , '  ');
    3636  }
    3737 
    38   function From($from)
    39   {
    40     if(!is_string($from))
     38  function From($From)
     39  {
     40    if(!is_string($From))
    4141    {
    4242      throw new Exception('Class Mail: error, From is not a string');
    4343    }
    44     $this->xheaders['From'] = $from;
    45   }
    46 
    47   function ReplyTo($address)
    48   {
    49     if(!is_string($address)) return(false);
    50        
    51     $this->xheaders['Reply-To'] = $address;
     44    $this->xheaders['From'] = $From;
     45  }
     46
     47  function ReplyTo($Address)
     48  {
     49    if(!is_string($Address)) return(false);
     50       
     51    $this->xheaders['Reply-To'] = $Address;
    5252  }
    5353
     
    188188  function ValidEmail($address)
    189189  {
    190     if(ereg( ".*<(.+)>", $address, $regs ))
     190    if(ereg( ".*<(.+)>", $address, $regs))
    191191    {
    192192      $address = $regs[1];
Note: See TracChangeset for help on using the changeset viewer.