sajan Posted November 3, 2011 Share Posted November 3, 2011 I get the following error on mail sending : SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: 220 xyz.com ESMTP SMTP -> ERROR: HELO not accepted from server: 220 xyz.com ESMTP SMTP -> FROM SERVER:250-xyz.com 250-AUTH=LOGIN CRAM-MD5 250-AUTH LOGIN CRAM-MD5 250-STARTTLS 250-PIPELINING 250 8BITMIME SMTP -> FROM SERVER:250 xyz.com SMTP -> FROM SERVER:250 ok SMTP -> ERROR: DATA command not accepted from server: 250 ok SMTP Error: Data not accepted When i add this to smtp class if($code == 250) { $rply = $this->get_lines(); $code = substr($rply,0,3); } I get this SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: 220 xyz.com ESMTP SMTP -> ERROR: HELO not accepted from server: 220 xyz.com ESMTP SMTP -> FROM SERVER:250-xyz.com 250-AUTH=LOGIN CRAM-MD5 250-AUTH LOGIN CRAM-MD5 250-STARTTLS 250-PIPELINING 250 8BITMIME SMTP -> FROM SERVER:250 xyz.com SMTP -> FROM SERVER:250 ok SMTP -> ERROR: DATA command not accepted from server: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) Please help me out.. Link to comment https://forums.phpfreaks.com/topic/250358-phpmailer-smtp-error-data-command-not-accepted-from-server/ Share on other sites More sharing options...
sajan Posted November 3, 2011 Author Share Posted November 3, 2011 Ok guys ...after much researching and experimenting i got it solved. I had to include the mail server ip in /usr/local/etc/postfix/main.cf file file. Link to comment https://forums.phpfreaks.com/topic/250358-phpmailer-smtp-error-data-command-not-accepted-from-server/#findComment-1284614 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.