PHPMailer + LiteMail SMTP Server Problem
I have a problem with PHPMailer and LiteMail SMTP Server
Whenever I try to send an email using PHPMailer and LiteMail SMTP Server, I keep getting these errors:
PHP Code:
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 LiteMail SMTP Server Ready.
"
SMTP -> get_lines(): $data is "220 LiteMail SMTP Server Ready.
"
SMTP -> FROM SERVER:
220 LiteMail SMTP Server Ready.
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-G'Day
"
SMTP -> get_lines(): $data is "250-G'Day
"
SMTP -> get_lines(): $data was "250-G'Day
"
SMTP -> get_lines(): $str is "250 AUTH PLAIN LOGIN
"
SMTP -> get_lines(): $data is "250-G'Day
250 AUTH PLAIN LOGIN
"
SMTP -> FROM SERVER:
250-G'Day
250 AUTH PLAIN LOGIN
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "500 We were kind of expecting a "MAIL FROM:" command!
"
SMTP -> get_lines(): $data is "500 We were kind of expecting a "MAIL FROM:" command!
"
SMTP -> ERROR: AUTH not accepted from server: 500 We were kind of expecting a "MAIL FROM:" command!
This same thing happens with other smtp classes for PHP, and I can't for the life of me figure out why. It keeps saying 'Auth not accepted' and 'We were kind of expecting a MAIL FROM command'. The MAIL-FROM command is always issued after the SMTP authentication happens, so why does it ask for it and cause SMTP authentication to fail when it doesn't get it?
If I screw around with it a bit, and move the MAIL FROM command up to where the SMTP Auth takes place, it then asks me for a RCPT-TO command with the same basic error message type.
The username, password and mail server I use to connect to SMTP is correct since I use it 100+ times a day to check my POP3 inbox.
PS: The error codes above are a portion of those generated by running the default test script that comes with PHPMailer. http://phpmailer.sf.net/