Changeset 3259


Ignore:
Timestamp:
Apr 26, 2009, 5:03:40 PM (11 years ago)
Author:
rub
Message:

Remove " " after ":" on smtp_mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/class_smtp_mail.inc.php

    r3059 r3259  
    116116      }
    117117
    118       $this->server_write('MAIL FROM: <'.$this->email_webmaster.'>'."\r\n");
     118      $this->server_write('MAIL FROM:<'.$this->email_webmaster.'>'."\r\n");
    119119      $this->server_parse('250');
    120120
    121121      if (preg_match('/^\s*to\s*:.*/mi', $headers) === 0)
    122122      {
    123         $to_header = 'To: '.implode(',', array_map(create_function('$email','return "<".$email.">";'), $recipients));
     123        $to_header = 'To:'.implode(',', array_map(create_function('$email','return "<".$email.">";'), $recipients));
    124124      }
    125125      else
     
    131131      while (list(, $email) = @each($recipients))
    132132      {
    133         $this->server_write('RCPT TO: <'.$email.'>'."\r\n");
     133        $this->server_write('RCPT TO:<'.$email.'>'."\r\n");
    134134        $this->server_parse('250');
    135135      }
     
    138138      $this->server_parse('354');
    139139
    140       $this->server_write('Subject: '.$subject."\r\n".(empty($to_header) ? "" : $to_header."\r\n").$headers."\r\n\r\n".$message."\r\n");
     140      $this->server_write('Subject:'.$subject."\r\n".(empty($to_header) ? "" : $to_header."\r\n").$headers."\r\n\r\n".$message."\r\n");
    141141      $this->server_write('.'."\r\n");
    142142      $this->server_parse('250');
Note: See TracChangeset for help on using the changeset viewer.