Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have installed this module and I get below error when an email is being sent from my website.
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host.
Please help me to fix this issue.
Thanks,
AnAnD
Comments
Comment #1
takesomelight CreditAttribution: takesomelight commentedHello, I have the same problem. Please let me know if someone find a solution. Thank you. TSL
Comment #2
ron_ron CreditAttribution: ron_ron commentedHello,
same problem.
Thank you for a solution.
ron
Comment #3
ron_ron CreditAttribution: ron_ron commentedHello,
found the solution. Error is in the smtp.phpmailer.inc in line 835.
change the line 843 - 836 with this code
Ron
Comment #4
silurius CreditAttribution: silurius commented#3 didn't work for me.
Comment #5
kenorb CreditAttribution: kenorb commentedI've this error on my homepage.
Comment #5.0
kenorb CreditAttribution: kenorb commentedcontent update
Comment #6
makokis CreditAttribution: makokis commentedsame issue here
Comment #7
wundo CreditAttribution: wundo commentedPlease confirm your PHP server has access to the SMTP server you're trying to connect.
Comment #8
makokis CreditAttribution: makokis commentedI'm using google acount and smtp setting are well set
Primary SMTP server: smtp.google.com
SMTP port: 465
Use secure protocol: SSL
User & pass: myuser & mypass
thanks for help
Comment #10
artem_antonov CreditAttribution: artem_antonov commentedThis happened to me when the SMTP server has the whitespace character before the address (" smtp.gmail.com")
Comment #11
kenorb CreditAttribution: kenorb commentedComment #12
cthshabel CreditAttribution: cthshabel commentedartem_antonov
THANK YOU VERY MUCH FOR SHARING YOUR FIX
for me, it was something as basic as the white space before address (" smtp.gmail.com") too
module maintaner... is it necessary to have this space at the beginning? Can it be removed?
Thanks so much SMTP team. It is an incredible module that should absolutely be in core.
Comment #13
vishal.sirsodiya CreditAttribution: vishal.sirsodiya commentedHi makokis,
#8
As per your suggestion, I have configured SMTP module. But I have facing new problem.
Please see below error :-
SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
SMTP Error: Could not connect to SMTP host.
Thank
Comment #14
barywhyte CreditAttribution: barywhyte commentedI got similar error to after uploading the site to internet. On the localhost, before uploading SMTP authentication module worked flaulessly.
SMTP -> ERROR: Failed to connect to server: (0)
Error message Unable to send e-mail. Contact the site administrator if the problem persists.
My host has provided some solutions which has not worked for me. Any workable solutions will be much appreciated. This is my first site with drupal www.barywhyte.com.ng
Comment #15
kenorb CreditAttribution: kenorb commentedSee: Unable to send e-mail. Contact the site administrator if the problem persists
Comment #16
barywhyte CreditAttribution: barywhyte as a volunteer commented@kenorb Thanks. Problem solved with the help of my host. SMTP settings has to change when you migrate from localhost to internet
Comment #17
AlexBorsody CreditAttribution: AlexBorsody commentedwhatespace after smtp address
Comment #18
ariel_fidenco CreditAttribution: ariel_fidenco commentedThanks to #10, I can't believe I didn't notice that trailing blank space for almost an hour. THANKS!
Comment #19
mattbk CreditAttribution: mattbk commentedThank you AlexBorsody, #17.