Changeset 394 for trunk/Mail.php
- Timestamp:
- Mar 2, 2012, 9:01:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mail.php
r393 r394 14 14 var $aattach = array(); 15 15 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)'); 17 17 var $charset = 'us-ascii'; 18 18 var $ctencoding = '7bit'; … … 25 25 } 26 26 27 function autoCheck($ bool)28 { 29 if($ bool) $this->checkAddress = true;27 function autoCheck($Bool) 28 { 29 if($Bool) $this->checkAddress = true; 30 30 else $this->checkAddress = false; 31 31 } 32 32 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" , ' '); 36 36 } 37 37 38 function From($ from)39 { 40 if(!is_string($ from))38 function From($From) 39 { 40 if(!is_string($From)) 41 41 { 42 42 throw new Exception('Class Mail: error, From is not a string'); 43 43 } 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; 52 52 } 53 53 … … 188 188 function ValidEmail($address) 189 189 { 190 if(ereg( ".*<(.+)>", $address, $regs 190 if(ereg( ".*<(.+)>", $address, $regs)) 191 191 { 192 192 $address = $regs[1];
Note:
See TracChangeset
for help on using the changeset viewer.