Solved

Drupal SMTP module output when sending mail

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

What is Usenet? There are many different opinions on exactly what Usenet is an isn't. Many opinions are incorrect simply out of ignorance. The Wikipedia listing about Usenet does a good job of explaining it, so instead of repeating it all here I wi…
Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now