I created an email script using phpmailer smtp and receiving this error:
"Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting."
i used as :
$mail->SMTPDebug = 0;
$mail->Host = 'relay-hosting.secureserver.net';
$mail->Port = 25;
$mail->SMTPAuth = false;
$mail->SMTPSecure = false;
Also tried this :
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'vi******************ket.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'contact@vi******************ket.com'; // SMTP username
$mail->Password = 'vi********r@************'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 25; // TCP port to connect to
Solved! Go to Solution.
You're using the wrong SMTP Port. Default SMTP Port is 465. Try changing the port to 465.
I suggest you ask Godaddy Support to let you know your SMTP Details or else provide me the email login so I can check and let you.
I called GoDaddy Support Team, they told me change server as relay-hosting.secureserver.net and port as 25.
But not working...
"else provide me the email login so I can check and let you." - i didn't get what u mean??
I mean the login information of your email account through which your planing to send or receive emails as there are options which displays your incoming and outgoing mail server details.
Please change the password and PM me and remember never share any login information in public.
Hi here's your SMTP Details
Password: Use the email account’s password.
Incoming Server: sg2plcpnl0179.prod.sin2.secureserver.net
IMAP Port: 993
POP3 Port: 995
Outgoing Server: sg2plcpnl0179.prod.sin2.secureserver.net
SMTP Port: 465
Please note that IMAP, POP3, and SMTP require authentication.
Please use the following script. If this doesn't work then it might be some code error from your side.
$mail->SMTPDebug = 0; $mail->isSMTP(); $mail->Host = 'sg2plcpnl0179.prod.sin2.secureserver.net'; $mail->Port = 465; $mail->SMTPAuth = true; $mail->SMTPSecure = true;
This code also not working..
Go daddy support team told me to put
host = localhost
port = 25
authentication = false.
But that also not working...
I don't know what to do? Move away from Go daddy to another provider may help, i think
This all worked for me for SMTP for e-mail services use that as the HOST. The rest should be pretty easy. I have read on GITHUB that you cannot send with encryption. Godaddy will encrypt it for you i think with their SSL. You are unable to use your own. Pretty sure that's how it works.