I've been troubleshooting an issue for most of the day. I am getting the following returned with SMTPdebug enabled:
SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: SMTP -> ERROR: AUTH not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: RSET failed:
I am using version PHPMailer 2.3 on Windows 2003, IIS6, MS SMTP and PHP 5.2.4. PHPMailer is being utilized by Drupal's SMTP module.
I get that message both when running it from the Drupal module as well as the Examples\tes_smtp.php file. I can connect to the SMTP server using TELNET without issue.
The oddest thing about the issue is that when looking at the SMTP log file, I can see the connection, the EHLO, HELO, MAIL FROM and QUIT. It looks the same from the PHPMailer:
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 EHLO - +*.org 250 0 185 20 0 SMTP - - - -
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 HELO - +*.org 250 0 43 20 0 SMTP - - - -
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 MAIL - +FROM:<m@s.com> 250 0 40 27 0 SMTP - - - -
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 QUIT - *.org 240 15 21 4 0 SMTP - - - -
To resolve my issue, I installed PHPMailer 2.2.1 and everything works great. I'm probably going to just use the older version for awhile, this is a personal site that is not used a whole lot and I probably use the mailer function 6-8 times a year.
If you would like further assistance, I can try to help out the cause, just contact me through SourceForge.
Thanks for the production fella's and keep up the good work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Excellent.. Thank you, that was most definately the fix to my problem. I would never have found that on my own.. I'll update Drupal's ticket with that info as well.. The Drupal module passes the mail server, Debug and other info to the PHPmailer application. It is pretty nicely written.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For the last two days I was frustrated trying to solve a similar problem. After long debugging I found out that the whole problem is a bug in PhpMailer 2.0.3 for PHP 4. Thr problem is in the 'get_lines' function in class.smtp.php on line 1041, where it reads the response of the server in this way:
"while($str == @fgets($this->smtp_conn,515)) {"
As you might expect it shall be
"while($str = @fgets($this->smtp_conn,515)) {"
with a single equal mark between $str and @fgets($this->smtp_conn,515) because we are reading the server's response! Believe it or not that was my whole frustrating problem!!!
Another hint is that you shall need to put $mail->Helo="yourdomain.com" besides $mail->Host="smtp.yourdomain.com". $mail->SMTPDebug=5 might be useful to see all the messages from the server!
I don't know exactly for your case, but that might help!
Good luck
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been troubleshooting an issue for most of the day. I am getting the following returned with SMTPdebug enabled:
SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: SMTP -> ERROR: AUTH not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: RSET failed:
I am using version PHPMailer 2.3 on Windows 2003, IIS6, MS SMTP and PHP 5.2.4. PHPMailer is being utilized by Drupal's SMTP module.
I get that message both when running it from the Drupal module as well as the Examples\tes_smtp.php file. I can connect to the SMTP server using TELNET without issue.
The oddest thing about the issue is that when looking at the SMTP log file, I can see the connection, the EHLO, HELO, MAIL FROM and QUIT. It looks the same from the PHPMailer:
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 EHLO - +*.org 250 0 185 20 0 SMTP - - - -
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 HELO - +*.org 250 0 43 20 0 SMTP - - - -
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 MAIL - +FROM:<m@s.com> 250 0 40 27 0 SMTP - - - -
2009-01-07 16:27:11 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 QUIT - *.org 240 15 21 4 0 SMTP - - - -
as it does from the TELNET session:
2009-01-07 16:35:44 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 EHLO - +*.org 250 0 185 20 0 SMTP - - - -
2009-01-07 16:35:58 192.168.200.3 *.org SMTPSVC1 DC1 192.168.200.3 0 MAIL - +from:+<m@s.com> 250 0 40 28 0 SMTP - - - -
2009-01-07 16:36:01 192.168.200.3*.org SMTPSVC1 DC1 192.168.200.3 0 QUIT - *.org 240 242203 64 4 0 SMTP - - - -
It is as if the results are not being read back into the CLASS.SMTP.PHP script.
There are a couple of these issues listed on Drupal's website ( http://drupal.org/node/337634#comment-1187958 ) and found some other instances as well of this happening.
To resolve my issue, I installed PHPMailer 2.2.1 and everything works great. I'm probably going to just use the older version for awhile, this is a personal site that is not used a whole lot and I probably use the mailer function 6-8 times a year.
If you would like further assistance, I can try to help out the cause, just contact me through SourceForge.
Thanks for the production fella's and keep up the good work.
Excellent.. Thank you, that was most definately the fix to my problem. I would never have found that on my own.. I'll update Drupal's ticket with that info as well.. The Drupal module passes the mail server, Debug and other info to the PHPmailer application. It is pretty nicely written.
For the last two days I was frustrated trying to solve a similar problem. After long debugging I found out that the whole problem is a bug in PhpMailer 2.0.3 for PHP 4. Thr problem is in the 'get_lines' function in class.smtp.php on line 1041, where it reads the response of the server in this way:
"while($str == @fgets($this->smtp_conn,515)) {"
As you might expect it shall be
"while($str = @fgets($this->smtp_conn,515)) {"
with a single equal mark between $str and @fgets($this->smtp_conn,515) because we are reading the server's response! Believe it or not that was my whole frustrating problem!!!
Another hint is that you shall need to put $mail->Helo="yourdomain.com" besides $mail->Host="smtp.yourdomain.com". $mail->SMTPDebug=5 might be useful to see all the messages from the server!
I don't know exactly for your case, but that might help!
Good luck