I want to be able to send mails in Hostgator ([url removed, login to view]) via office365. I was able to do it with gmail, but can not set it up to work with office365.
It works on my 2 other servers I have just fine. The only problem is Hostgator.
Do they have to take some action?
$mail->SMTPDebug = 2;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Host = "[url removed, login to view]";
$mail->Port = 587;
$mail->Username = "usernamehere";
$mail->Password = "************";
/* ... addaddres, reply, subject, message -> the usual stuff you need ... */
I just keep getting following responce:
SMTP -> ERROR: Failed to connect to server: Connection refused (111)