?
Solved

Drupal SMTP module output when sending mail

Posted on 2008-10-14
1
Medium Priority
?
1,664 Views
Last Modified: 2013-11-30
My server is no longer supporting the php mail function as 'nobody' so I've had to seek out the use of the SMTP module for Drupal. After following instructions listed in the module, it appears to have installed without any problems. My hosting server requires authentication, and I have set the proper username and password on the module's admin section.

However, when I send a test email, or if the contact link is used on my site, or newsletters are sent, etc etc (i.e. anything using the SMTP module), then I get a mass of output despite the email being successfully sent. Can anyone shed light on why this is happening, if it is a bug, and possible solutions for it? The output [with my server name edited out] is:

(see Attached Code Snippet)

Thanks.
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 "
SMTP -> get_lines(): $data is "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 "
SMTP -> get_lines(): $data was "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 "
SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data is "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data was "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 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-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. "
SMTP -> FROM SERVER: 220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 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-[myserverhere.net] Hello bcims.org [66.193.109.66] "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] "
SMTP -> get_lines(): $str is "250-SIZE 52428800 "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING "
SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $str is "250-STARTTLS "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
SMTP -> get_lines(): $str is "250 HELP "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP "
SMTP -> FROM SERVER: 250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP
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=1Kpnfh-0006or-TV "
SMTP -> get_lines(): $data is "250 OK id=1Kpnfh-0006or-TV "
SMTP -> FROM SERVER: 250 OK id=1Kpnfh-0006or-TV
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "221 [myserverhere.net] closing connection "
SMTP -> get_lines(): $data is "221 [myserverhere.net] closing connection "
SMTP -> FROM SERVER: 221 [myserverhere.net] closing connection

Open in new window

0
Comment
Question by:shish1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
shish1 earned 0 total points
ID: 22731619
Well, since I've not heard a reply to my question for some time now, I'll post my own solution:

There is a debugging setting on the SMTP Authentication module. Not only does this log errors in the Drupal log, but it will also print the output (successful or otherwise) of the SMTP reply from the server onto the screen. By turning this off, the output goes away and messages are still sent without a problem.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question