Solved

Drupal SMTP module output when sending mail

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 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