Closed (works as designed)
Project:
SMTP Authentication Support
Version:
6.x-1.0-beta5
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2011 at 10:16 UTC
Updated:
7 Jun 2018 at 05:53 UTC
Jump to comment: Most recent
Comments
Comment #1
guntherdevisch commentedHaving exact the same problem,
Also looking into it.
Greets,
Gunther
Comment #2
supahjan commentedI'm having this error:
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host.
Any idea how to solve this?
Comment #3
josesanmartin commentedLooks like your server can't ping the SMTP server. Can you check that?
(use "support request", please)
Comment #4
scottprive commentedThis module works via the included PHPMailer PHP library.
When in doubt, try a SIMPLE test like a standalone (outside of Drupal) SMTP email test which uses PHPMailer.
Here is one example you can customize: http://phpmailer.worxware.com/index.php?pg=examplebsmtp
If that does not work, then most likely you are not specifying (in phpmailer's config) the correct hostname of your SMTP server, or your SMTP credentials are not valid.
Or you have a DNS or routing issue reaching that server (you can try to ping that server, but a better test is to telnet to the actual SMTP server port, and see if you get a connection/mailserver greeting).
Comment #5
erok415 commentedsubscribing
Comment #6
wundo commentedClosing very old (dead) issues, if you think this is still relevant please re-open.
Comment #7
sarbhai commentedI cound not send the mail, while i tried to contact service provider, Hi answer following:
please help me to fix this issue
After the recent update of cPanel v64, all outgoing emails sent through PHP scripts will need to be authenticated and routed through an email address created through cPanel. This is done to prevent Malware injected spam emails sent through the server and to prevent the server IP from being blacklisted. Please follow the instructions for Wordpress or Joomla, or please contact your website developer and request them to update the PHP code with SMTP authentication, you can find PHP sample code below
PHP Sample Code:
https://tinyurl.com/y8s73ova (or) https://github.com/PHPMailer/PHPMailer.git
$mail->Host = "mail.domain.com";
$mail->Username = "feedback@domain.com";
$mail->Password = "1234567890";
$mail->AddAddress("my-email@gmail.com", "My Name");
$mail->Subject = "Feedback from your website!";
// Enter "mail.my-domain.com"
// Enter an email address created through cPanel
// Enter the email password created through cPanel
// Enter the recipient "to" email address
// For subject "Any Preferred Email Subject";