Why does setting CRLF in a class variable result in this.
220-server1.mailserver.com ESMTP Exim 4.43 #1 Wed, 22 Jun 2005 11:32:52 -0700
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
250 server1.mailserver.com Hello localhost [127.0.0.1]
501 tech@mysite.com\nRCPT TO:admin@mysite.com\nDATA: malformed address: \nRCPT TO:admin@mystie.com may not follow tech@mysite.com
Here's the code i'm using.
//If I manually set CRLF then all is well.
fputs($this->smtp_conn, "HELO " . $this->smtp_server . "\n");
echo fgets($this->smtp, 1024).'<br>';
fputs($this->smtp, "MAIL FROM:" . $this->sender . $this->CRLF);
echo fgets($this->smtp, 1024).'<br>';
fputs($this->smtp, "RCPT TO:" . $recip . $this->CRLF);
echo fgets($this->smtp, 1024).'<br>';
fputs($this->smtp, "DATA\n");
echo fgets($this->smtp, 1024).'<br>';
fputs($this->smtp, "From: " . $your_name . "<" . $this->sender . ">" . "\n");
echo fgets($this->smtp, 1024).'<br>';