- Timestamp:
- Apr 26, 2009, 5:05:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/include/class_smtp_mail.inc.php
r3058 r3260 116 116 } 117 117 118 $this->server_write('MAIL FROM: 118 $this->server_write('MAIL FROM:<'.$this->email_webmaster.'>'."\r\n"); 119 119 $this->server_parse('250'); 120 120 121 121 if (preg_match('/^\s*to\s*:.*/mi', $headers) === 0) 122 122 { 123 $to_header = 'To: 123 $to_header = 'To:'.implode(',', array_map(create_function('$email','return "<".$email.">";'), $recipients)); 124 124 } 125 125 else … … 131 131 while (list(, $email) = @each($recipients)) 132 132 { 133 $this->server_write('RCPT TO: 133 $this->server_write('RCPT TO:<'.$email.'>'."\r\n"); 134 134 $this->server_parse('250'); 135 135 } … … 138 138 $this->server_parse('354'); 139 139 140 $this->server_write('Subject: 140 $this->server_write('Subject:'.$subject."\r\n".(empty($to_header) ? "" : $to_header."\r\n").$headers."\r\n\r\n".$message."\r\n"); 141 141 $this->server_write('.'."\r\n"); 142 142 $this->server_parse('250');
Note: See TracChangeset
for help on using the changeset viewer.