I need to know the settings for sending STMP emails with encryption tls. I want to send emails from my godaddy accounts, all my emails accounts are hosting in godaddy. This is my configuration (I use PHPMAILER):
$pMail->Host = "smtpout.secureserver.net";
$pMail->Username = "emailgodaddy@godaddy.com";
$pMail->Port = 465
$pMail->SMTPSecure = 'tls';
$pMail->Password = "mypassword"
$pMail->SMTPAuth = true;
If I change the Port to 80 (and deactivated SMTPSECURE) I can send emails, but those emails are not encrypted!. When I use Port=465 show this error: Failed to connect to server: Connection refused (111).
I know I can send mails with these settings:
$pMail->Host = 'relay-hosting.secureserver.net';
$pMail->Port = 25;
$pMail->SMTPAuth = false;
$pMail->SMTPSecure = false;
But those emails are not sent encrypted. I need send mails through SMTP because if the emails sent with the method mail() or sendmail() are not sent for more than a month!. I contacted with godaddy many times and I haven't been given any solutions. And I know it's not a source code problem because for many months the emails have been sent correctly. I also have two different websites in the same hosting and I don't get email from either. I need a solution until I migrate to another server, because I'm very sick of godaddy, I wouldn't recommend it to my worst enemy!
What settings I need to send encrypted emails?. Or what other solution can I apply?
EDIT: After days godaddy told me that there's no problem sending emails from port 25. I don't trust them because I think that they don't know what is the problem and I know that port 25 isn't a secure port. Support don't use the word "secure" but told me that there's no problem...