PHPMailer error 220

Status
Not open for further replies.

tomsm

New Member
Messages
17
Reaction score
0
Points
0
I am trying to send e-mails using PHPmailer from my Drupal site.

As smtp server I entered: mail.mydomain.x10hosting.com:26
As username: admin+tomsm.x10hosting.com
As password: the password for the mailaccount admin

When Drupal runs cron, it sends the mails. I enabled the debug mode and this is the error I get:

SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220-lotus.x10hosting.com ESMTP Exim 4.69 #1 Thu, 29 Oct 2009 04:39:21 -0500 " SMTP -> get_lines(): $data is "220-lotus.x10hosting.com ESMTP Exim 4.69 #1 Thu, 29 Oct 2009 04:39:21 -0500 " SMTP -> get_lines(): $data was "220-lotus.x10hosting.com ESMTP Exim 4.69 #1 Thu, 29 Oct 2009 04:39:21 -0500 " SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, " SMTP -> get_lines(): $data is "220-lotus.x10hosting.com ESMTP Exim 4.69 #1 Thu, 29 Oct 2009 04:39:21 -0500 220-We do not authorize the use of this system to transport unsolicited, " SMTP -> get_lines(): $data was "220-lotus.x10hosting.com ESMTP Exim 4.69 #1 Thu, 29 Oct 2009 04:39:21 -0500 220-We do not authorize the use of this system to transport unsolicited, " SMTP -> get_lines(): $str is "220 and/or bulk e-mail. " SMTP -> get_lines(): $data is "220-lotus.x10hosting.com ESMTP Exim 4.69 #1 Thu, 29 Oct 2009 04:39:21 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. " SMTP -> FROM SERVER: 220-lotus.x10hosting.com ESMTP Exim 4.69 #1 Thu, 29 Oct 2009 04:39:21 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250-lotus.x10hosting.com Hello localhost [127.0.0.1] " SMTP -> get_lines(): $data is "250-lotus.x10hosting.com Hello localhost [127.0.0.1] " SMTP -> get_lines(): $data was "250-lotus.x10hosting.com Hello localhost [127.0.0.1] " SMTP -> get_lines(): $str is "250-SIZE 52428800 " SMTP -> get_lines(): $data is "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 " SMTP -> get_lines(): $data was "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 " SMTP -> get_lines(): $str is "250-PIPELINING " SMTP -> get_lines(): $data is "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING " SMTP -> get_lines(): $data was "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING " SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $data is "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $data was "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN " SMTP -> get_lines(): $str is "250-STARTTLS " SMTP -> get_lines(): $data is "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS " SMTP -> get_lines(): $data was "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS " SMTP -> get_lines(): $str is "250 HELP " SMTP -> get_lines(): $data is "250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP " SMTP -> FROM SERVER: 250-lotus.x10hosting.com Hello localhost [127.0.0.1] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "235 Authentication succeeded " SMTP -> get_lines(): $data is "235 Authentication succeeded " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 OK " SMTP -> get_lines(): $data is "250 OK " SMTP -> FROM SERVER: 250 OK SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 Accepted " SMTP -> get_lines(): $data is "250 Accepted " SMTP -> FROM SERVER: 250 Accepted SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "354 Enter message, ending with "." on a line by itself " SMTP -> get_lines(): $data is "354 Enter message, ending with "." on a line by itself " SMTP -> FROM SERVER: 354 Enter message, ending with "." on a line by itself SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 OK id=1N3RTV-0004im-Ig " SMTP -> get_lines(): $data is "250 OK id=1N3RTV-0004im-Ig " SMTP -> FROM SERVER: 250 OK id=1N3RTV-0004im-Ig SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "221 lotus.x10hosting.com closing connection " SMTP -> get_lines(): $data is "221 lotus.x10hosting.com closing connection " SMTP -> FROM SERVER: 221 lotus.x10hosting.com closing connection
 

ah-blabla

New Member
Messages
375
Reaction score
7
Points
0
I don't think you have any errors in there: if you switch on debug mode you will simply get a whole load of debugging information, i.e. anything that could be useful if you are trying to fix a problem -- debugging mode is for when you are developing a site or software -- this information isn't needed for a site that is running. You said the emails are sent fine, so there isn't a problem.

Looking a bit closer: the first 10 lines or so are showing a 220 "error": this isn't an error: 220 is the code for SMTP "Service Ready".
 
Last edited:

tomsm

New Member
Messages
17
Reaction score
0
Points
0
Thanks for the information.
When I switched debug mode off, the mails are send correctly.
As SMTP server I entered: localhost
As username: "my Cpanel login name"
As password: "my Cpanel password"

All is fine now.
 
Status
Not open for further replies.
Top