cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution

PHPMailer smtp error

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->isSMTP();
$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

_______________________

Plz Help...

14 REPLIES 14
Helper V
Helper V

Re: PHPMailer smtp error

You're using the wrong SMTP Port. Default SMTP Port is 465. Try changing the port to 465.

 

Please give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar

Re: PHPMailer smtp error

Tried with port 465. But Same Error Showing..

Helper V
Helper V

Re: PHPMailer smtp error

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.

 

Please give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar

Re: PHPMailer smtp error

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??

Helper V
Helper V

Re: PHPMailer smtp error

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 give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar

Re: PHPMailer smtp error

otorays.com/webmail

email : *****************

password : *****************

 

 *edited by moderation

Helper V
Helper V

Re: PHPMailer smtp error

Please change the password and PM me and remember never share any login information in public.

 

Please give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar
Helper V
Helper V

Re: PHPMailer smtp error

Hi here's your SMTP Details

 

Username: care@otorays.com
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 give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar

Re: PHPMailer smtp error

Sorry to say, i didn't get what you meant?

how i use these details??

Highlighted
Helper V
Helper V

Re: PHPMailer smtp error

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;
Please give it a +1 and also click "Mark As Accepted Solution" if you find it satisfactory. Thanking You With Regards | Harry Parmar

Re: PHPMailer smtp error

This code also not working..

Go daddy support team told me to put

host = localhost

port = 25

and

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

Re: PHPMailer smtp error

How can i check my smtp details from account ?? thanks
Solution

Re: PHPMailer smtp error

Host: p3plcpnl1000.prod.phx3.secureserver.net

USERNAME

PASSWORD

PORT: 25

ENCRYPTION: none

 

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.

New
Solution

Re: PHPMailer smtp error

Update for those having issues with sending email using godaddy's server.

 

I used 587 port with tls and used the office365 server

smtp.office365.com