Solved

Drupal SMTP module output when sending mail

Posted on 2008-10-14
1
1,663 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Drupal 5.x currently does not have a production-ready patch bundle to allow for split read & writes for a MySQL master/slave replication setup. After reading a open discussion/thread on the Drupal site (http://drupal.org/node/147160 (http://drupal.o…
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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