Closed (works as designed)
Project:
SMTP Authentication Support
Version:
7.x-1.0-beta1
Component:
Miscellaneous
Priority:
Minor
Category:
Support request
Assigned:
Reporter:
Created:
4 Aug 2011 at 03:35 UTC
Updated:
20 Jun 2018 at 00:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Craig617 commentedI'm having the exact same issue, and have tried everything I can think of or have read about.
Does anyone have any ideas how to solve this? Thanks!
Comment #2
daleykd commentedThis is happening to me, also.
Drupal 7.8
Trying to use GMail (none of my email is hosted with my web host). It just refuses to connect to GMail.
Please, any help would be appreciated.
Comment #3
josesanmartin commentedThere could be a lot of reasons for that.
* Check your SMTP settings (configs for GMail: smtp.gmail.com, port 465, and you must "Use SSL")
* Check whether Apache is able to connect to the smtp server (there might be firewalls, network issues, etc)
If everything is alright, please check the "Enable debugging" checkbox in the SMTP settings page and post the results here.
Comment #4
zibby72 commentedsame problem here. "enable debugging" does not spit out any errors.
my setup:
Go-daddy Linux VPS D7.7
Comment #5
africahost commentedLocation http://gtexchanger.com/?q=admin/config/system/smtp&render=overlay
Referrer http://gtexchanger.com/?q=admin/config/system/smtp&render=overlay
Message Error sending e-mail (from sales@gtexchanger.com to exchangeecurrencies@gmail.com).
Severity error
Comment #6
africahost commentedI received this error
Location http://gtexchanger.com/?q=admin/config/system/smtp&render=overlay
Referrer http://gtexchanger.com/?q=admin/config/system/smtp&render=overlay
Message Error sending e-mail (from sales@gtexchanger.com to exchangeecurrencies@gmail.com).
Severity error
Comment #7
adroit_91 commentedSubscribing.
Comment #8
carajito commentedSMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host.
Godaddy linux server, what can I do?
Comment #9
carajito commentedError for godaddy server:
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 p3nlsmtp09.shr.prod.phx3.secureserver.net ESMTP "
SMTP -> get_lines(): $data is "220 p3nlsmtp09.shr.prod.phx3.secureserver.net ESMTP "
SMTP -> FROM SERVER:220 p3nlsmtp09.shr.prod.phx3.secureserver.net ESMTP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-p3nlsmtp09.shr.prod.phx3.secureserver.net "
SMTP -> get_lines(): $data is "250-p3nlsmtp09.shr.prod.phx3.secureserver.net "
SMTP -> get_lines(): $data was "250-p3nlsmtp09.shr.prod.phx3.secureserver.net "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-p3nlsmtp09.shr.prod.phx3.secureserver.net 250-PIPELINING "
SMTP -> get_lines(): $data was "250-p3nlsmtp09.shr.prod.phx3.secureserver.net 250-PIPELINING "
SMTP -> get_lines(): $str is "250-SIZE 31457280 "
SMTP -> get_lines(): $data is "250-p3nlsmtp09.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 "
SMTP -> get_lines(): $data was "250-p3nlsmtp09.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 "
SMTP -> get_lines(): $str is "250 8BITMIME "
SMTP -> get_lines(): $data is "250-p3nlsmtp09.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 250 8BITMIME "
SMTP -> FROM SERVER: 250-p3nlsmtp09.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 250 8BITMIME
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "553 sorry, your mail was administratively denied. (#5.7.1) "
SMTP -> get_lines(): $data is "553 sorry, your mail was administratively denied. (#5.7.1) "
SMTP -> FROM SERVER:553 sorry, your mail was administratively denied. (#5.7.1)
SMTP -> ERROR: MAIL not accepted from server: 553 sorry, your mail was administratively denied. (#5.7.1)
The following From address failed: mail@mysite.com
Comment #10
artimedius commentedI've experienced the same problems; something like that in the beginnig, settings were working, an suddenly, errors, getting via debug what follows:
SMTP -> ERROR: Failed to connect to server: Connection refused (111)
SMTP Error: Could not connect to SMTP host.
I've noticed a strange behaviour, and I do not know if is something that could interest some suspicious...
it seems when I type the smtp username and smtp password in the SMTP AUTHENTICATION fieldset, and then I 'save configuration', the smtp username is stored and appears, but the field of smtp password turns to empty again (is that normal?)
(by the way) just because I need it for a commercial website for new users to login, (sounds like urgent, doesn't it? :-), I also ask if there is another valid module for using SMTP using scripts PHP/CGI, for Versione D7.8?
waiting for revolution... wishing the resolution... !
Comment #11
artimedius commentedmy first solution is: Gmail
as we know, ther's always something that fits things more than anything else... so I tested the module using gmail account and smtp.gmail.com/465/... settings. things work perfect, so I assume that our shared/dedicated host should have gmail-like setups and behaviours, and we should complain to our 'not-well-configured-for-drupal' hosts, 'cause maybe they prefer do that for joomlers or wordpressers ('cause they are majority)...
So
1- donwload SMTP AUTHENTICATION SUPPORT module
2- download PHP mailer 5.1 (full library)
CREATING COMPLETE MODULE...
3- rename PHP mailer 5.1 folder to 'phpmailer' (small caps!)
4- move the folder 'phpmailer' into the 'smtp' folder (of the module smtp, of course)
ONCE YOU'VE DONE THIS, THE COMPLETED SMTP MODULE IS READY FOR YOUR SITE
5- upload it into the 'modules' folder of your drupal installation on server
6- install the module smtp that you've uploaded from your drupal modules administration page
7- configure then smtp module:
a) activate it turn it ON
b) use as SMTPserver: smtp.gmail.com
c) use as SMTPport: 465
d) use encryption: SSL
c) SMTPuser: your gmail username
d) SMTPpword: your gmail password
e) send a testing mail to assure everything works fine...
Every thing should work fine!
8- say a little prayer for all our 'drupal-awareness' :-)
bye drupal-folks
Comment #12
zabalex commentedI had the same issue with my host. They told me to try every possible option, stated that it was a problem with my code, email server, application (drupal), etc.
I wasted 2 weeks, than hired a guy to develop firewall ports blocking detection application, and here it is. As soon as I was able to proove to hosting company that they blocked port 465 and show them my little utility, everything went fine and they responded that it was firewall security issue and opened the port.
Here is the tool: Port forwarding tester external server:
Let me know what you think
Comment #13
wundo commentedzabalex, i think that a simple telnet from your server to your smtp server should be enough to tell you either this is a network problem or not.
Comment #14
zabalex commentedIf the site is hosted in the environment which does not offer telnet or ssh?
I am personally not that familiar with telnet, just never needed it. Now I'm a bit surprised why it took that long for admins at hosting company to detect the issue. You can't begin to emagine what wild guesses they were throwing at me regarding issues with my smtp problem. I can elaborate on request if someone lacks some joke sources.
Thanks Wundo for your feedback though
Comment #16
rkgdrupal commentedI have a same issue with smtp module. I am getting following error 'SMTP Error: Could not connect to SMTP host.' when Testing a connection.Pls anyone help me.
Comment #17
feugana1 commentedHello I installed smtp Authentification Module and had done configuration by when i want to test sending, it appear this error :
SMTP.module is active.
The configuration options have been saved.
SMTP.module is active.
A test e-mail has been sent to xxx@gmail.com. You may want to check the logs for any error messages.
Error message
Unable to send e-mail. Contact the site administrator if the problem persists.
Comment #18
waqasali commentedits basically depends on the way you are using email service.
if you are working on web server then it is important to know that either web servers provide ssl support or not like 000webhost for free users doesn't support ssl.
if you are using on local server then
1- donwload SMTP AUTHENTICATION SUPPORT module
2- download PHP mailer 5.1 (full library)
CREATING COMPLETE MODULE...
3- rename PHP mailer 5.1 folder to 'phpmailer' (small caps!)
4- move the folder 'phpmailer' into the 'smtp' folder (of the module smtp, of course)
ONCE YOU'VE DONE THIS, THE COMPLETED SMTP MODULE IS READY FOR YOUR SITE
5- upload it into the 'modules' folder of your drupal installation on server
6- install the module smtp that you've uploaded from your drupal modules administration page
7- configure then smtp module:
a) activate it turn it ON
b) use as SMTPserver: smtp.gmail.com
c) use as SMTPport: 465
d) use encryption: SSL
c) SMTPuser: your gmail username
d) SMTPpword: your gmail password
e) send a testing mail to assure everything works fine...
Every thing should work fine!
thanks drupal-folks
Comment #19
waqasali commentedthis is modified smtp module check it...
Comment #20
wundo commentedThis is not major, as it's probably a mistake in your configuration.
Comment #21
pmohDrupal7 commentedHi,
I set a local host apache server with Drulpal 7.
SMTP module is actived.
Enable debugging is checked. (http://localhost:8081/?q=node#overlay=%3Fq%3Dadmin%252Fconfig%252Fsystem...)
Set test mail with address: "moh.peter@yahoo.com" and click button.
No errro message. But no mail receveied as I check yahoo mail
Following is the SMTP ssettting
mysql> select * from variable where name like 'smtp%';
smtp_allowhtml i:1;
smtp_debugging i:1;
smtp_from s:14:"pmoh@mtahq.org";
smtp_fromname s:14:"pmoh@mtahq.org";
smtp_host s:14:"127.0.0.1:8081";
smtp_hostbackup s:9:"mtahq.org";
smtp_library s:34:"sites/all/modules/smtp/smtp.module";
smtp_on s:1:"1";
smtp_password s:0:"";
smtp_port s:2:"25";
smtp_protocol s:8:"standard";
smtp_username s:0:"";
12 rows in set (0.00 sec)
Comment #22
rashmit sidhu commentedThis code is useful for sending mail from local host using Gmail.
Google account configuration
Read this Google Help.
1) Open your web browser and sign in to Gmail at http://mail.google.com/mail. If you see a word verification request, type the letters in the distorted picture and finish signing in.
2) Close your browser and try accessing your messages in your email client again.
3) If you're still having problems, visit and sign in with your Gmail username and password. If necessary, enter the letters in the distorted picture and click continue.
Restart your mail client and try accessing messages in your email client again.
System access configuration
Need to allow access for firewall or network to send mail for linux, windows and mac.
Following command set permission for linux.
1) iptables -I OUTPUT -p tcp --dport 465 -j ACCEPT
2) iptables -I OUTPUT -p tcp --dport 587 -j ACCEPT
SMTP Authentication Support
Set your gmail and google app information.
1) If you want to use Gmail as SMTP server,
Note : Remove leading and trailing space from "SMTP Authenitcation Username" if is there otherwise it's not authenticate your request to gmail.
Let me know if you face any query/concern regarding this.
Comment #23
geekinpink commentedComment #24
pushkar commentedI am late to the party but I had the same issue.
I was on CentOS 6.3 and 7..
There is some weirdness where the HTTP server is unable to connect to an external server (something something SELinux)
Try this : http://stackoverflow.com/questions/13489037/could-not-connect-to-smtp-host
Comment #25
arefen commentedi can't send email but if set my email in thunderbird i can send email. bellow debug message. Can anyone help me?
Comment #26
bwoods commentedThank you pushkar - I ran into the same problem you had three years ago. This certainly saved me time having to look it up myself!