Hello,
I have a website made in Drupal 8 with the registration active and a simple default form message. I installed the SMTP module.
On my staging environment the the module works fine with these settings:
- SMTP server: outlook.office365.com
- SMTP port: 587
- Encrypted protocol: TLS
- User: marek@pointmckaywinestore.com
- Password: the one to access to the office 365 webmail
- E-mail from address: marek@pointmckaywinestore.com
- E-mail from name: empty (use default site name)
- Allow to send e-mails formatted as HTML: unchecked
When I have deployed it on the goDaddy server, with the same settings, It doesn't work anymore. I get the general error message:
Unable to send email. Contact the site administrator if the problem persists.
If I go to the "recent log messages", I find another general error. the screenshot is attached.
I tried any sort of different configuration, server address etc... but it doesn't want to work. I chatted with the goDaddy assistance at least a 20 times and every time they put a simple php script in my root to send emails. Since it was working, we always ended up these chats with them saying that there is something wrong with my module.
They have been totally useless. I really don't know where to look for in order to overcome this issue.
At least I would like to have access to some error logs, otherwise I'm totally blind.
If there is someone who could help me with this, I would be infinitely grateful
| Comment | File | Size | Author |
|---|---|---|---|
| email-error.png | 60.27 KB | rolfo85 |
Issue fork smtp-2823575
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rolfo85 commentedI talked for a long tim with goDaddy and they say that even though it is working on another provider, there must be something in their config that doesn't fit with the module config.
they passed me this link https://ca.godaddy.com/help/software-versions-shared-hosting-897 to check if the hosting config is good for the module.
Does someone see something that might cause that issue ?
Comment #3
estoyausenteI haven't any GoDaddy server to test it, can you debug or watch the php log to show us more information?
With this data is very difficult to determine the error.
Thanks
Comment #4
rolfo85 commentedSOLVED!!!!
The solution was super easy and the goDaddy operators are super awful... not all of them.. cause someone called Chase finally fixed this nightmare.
So...
If you are using the SMTP module on a goDaddy server, this is the configuration you must have....
Nobody except Chase, was able to tell this to me, and I showed them my configuration thousands times.
They all used to tell me that that issue was out of their scope and that in the SMTP module there was something wrong.
That is all
Comment #5
estoyausenteComment #6
johnwpritchard commentedDisclaimer - this is my first post to the Drupal community, so forgive me if I am doing something out of context.
I am also using Godaddy and Drupal (7) and am attempting to send email through the SMTP module. I must have gotten lucky because the GoDaddy tech I got knew right out of the gate that the settings needed to be localhost, port 25, no encryption and no authentication.
I have included the settings in the SMTP module below.
The Godaddy tech also installed the php script on my site and was able to demonstrate that the site is sending email. I received the email just fine.
When I run the test from the SMTP module I get the following logged. Kinda appears as if it is working, but the godaddy tech said he was 'not seeing it come through the queues'. I did try with the Queue checkbox on and off. I am also including what the logs in drupal say after attempting to send.
Finally, I did run a test off the site where we have a registration page (as opposed to simply running a test). I have included the logs for that as well.
**********SMTP Module Settings*************
SMTP Module settings:
INSTALL OPTIONS
Turn this module on or off: ON
Turn on delivery of emails: ON
Send mail by queue: Have tried both, but currently NOT CHECKED
Retry sending mail on error.: Currently NOT CHECKED
SMTP SERVER SETTINGS
SMTP server: localhost
SMTP backup server:
SMTP port: 25
Use encrypted protocol: No
SMTP AUTHENTICATION
Username:
Password:
E-MAIL OPTIONS
E-mail from address: its@pcsco.com
E-mail from name: PCS Web Site
Allow to send e-mails formatted as Html: NOT CHECKED
SMTP CLIENT SETTINGS
Hostname:
HELO:
SEND TEST E-MAIL
E-mail address to send a test e-mail to: have definitely tried this with a few different email addresses :-)
DEBUGGING AND LOGGING
Logging: Log everything
**********Log from Test*************
• SMTP.module is active.
• The configuration options have been saved.
• SMTP.module is active.
• SMTP -> get_lines(): $data was ""
• SMTP -> get_lines(): $str is "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 07:39:52 -0700 "
• SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 07:39:52 -0700 "
• SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 07:39:52 -0700 "
• SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "
• SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 07:39:52 -0700 220-We do not authorize the use of this system to transport unsolicited, "
• SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 07:39:52 -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 was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 07:39:52 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. "
• SMTP -> FROM SERVER: 220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 07:39:52 -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-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] "
• SMTP -> get_lines(): $str is "250-SIZE 52428800 "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 "
• SMTP -> get_lines(): $str is "250-8BITMIME "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME "
• SMTP -> get_lines(): $str is "250-PIPELINING "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "
• SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "
• SMTP -> get_lines(): $str is "250-STARTTLS "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
• SMTP -> get_lines(): $str is "250 HELP "
• SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP "
• SMTP -> FROM SERVER: 250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 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 was "250 OK "
• SMTP -> FROM SERVER: 250 OK
• SMTP -> get_lines(): $data was ""
• SMTP -> get_lines(): $str is "250 Accepted "
• SMTP -> get_lines(): $data was "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 was "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=1cPs9w-000dkZ-N2 "
• SMTP -> get_lines(): $data was "250 OK id=1cPs9w-000dkZ-N2 "
• SMTP -> FROM SERVER: 250 OK id=1cPs9w-000dkZ-N2
• SMTP -> get_lines(): $data was ""
• SMTP -> get_lines(): $str is "221 a2plcpnl0744.prod.iad2.secureserver.net closing connection "
• SMTP -> get_lines(): $data was "221 a2plcpnl0744.prod.iad2.secureserver.net closing connection "
• SMTP -> FROM SERVER: @byemsg
• A test e-mail has been sent to john@vcio.biz. You may want to check the logs for any error messages.
**********Information in Drupal Logs*************
TYPE smtp
DATE Saturday, January 7, 2017 - 08:39
USER johnp@pcsco.com
LOCATION http://pcsclientarea.pcsco.com/admin/config/system/smtp?render=overlay
REFERRER http://pcsclientarea.pcsco.com/admin/config/system/smtp?render=overlay
MESSAGE Sent mail to: john@vcio.biz
SEVERITY notice
HOSTNAME 66.172.214.105
OPERATIONS
**********Log from Registration form *************
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 08:28:26 -0700 "
SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 08:28:26 -0700 "
SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 08:28:26 -0700 "
SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 08:28:26 -0700 220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 08:28:26 -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 was "220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 08:28:26 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. "
SMTP -> FROM SERVER: 220-a2plcpnl0744.prod.iad2.secureserver.net ESMTP Exim 4.87 #1 Sat, 07 Jan 2017 08:28:26 -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-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] "
SMTP -> get_lines(): $str is "250-SIZE 52428800 "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 "
SMTP -> get_lines(): $str is "250-8BITMIME "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "
SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $str is "250-STARTTLS "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
SMTP -> get_lines(): $str is "250 HELP "
SMTP -> get_lines(): $data was "250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP "
SMTP -> FROM SERVER: 250-a2plcpnl0744.prod.iad2.secureserver.net Hello pcsclientarea.pcsco.com [127.0.0.1] 250-SIZE 52428800 250-8BITMIME 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 was "250 OK "
SMTP -> FROM SERVER: 250 OK
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 Accepted "
SMTP -> get_lines(): $data was "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 was "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=1cPsuw-001uuW-Fc "
SMTP -> get_lines(): $data was "250 OK id=1cPsuw-001uuW-Fc "
SMTP -> FROM SERVER: 250 OK id=1cPsuw-001uuW-Fc
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "221 a2plcpnl0744.prod.iad2.secureserver.net closing connection "
SMTP -> get_lines(): $data was "221 a2plcpnl0744.prod.iad2.secureserver.net closing connection "
SMTP -> FROM SERVER: @byemsg
Comment #7
nayanalok commented#4 resolved my mail sending issue
Comment #8
hockey2112 commentedAfter spending hours troubleshooting this with and without GoDaddy on chat, #4 is what finally fixed my issue. Thank you!
Comment #9
scottm316 commentedIf you use Godaddy with the settings in #4, you may not need this module.
Comment #10
prashant.cThanks a lot, @rolfo85, I was in the same boat, your https://www.drupal.org/project/smtp/issues/2823575#comment-11761199 saved me after spending hours of debugging and chatting with he Godaddy support team.
Comment #11
bluegeek9 commentedAdd a help topic based on #comment-11761199
Comment #12
japerryComment #15
bluegeek9 commented