I want to be able to send mails in Hostgator ([login to view URL]) 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?
<?php
$mail->IsSMTP();
$mail->SMTPDebug = 2;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Host = "[login to view URL]";
$mail->Port = 587;
$mail->Username = "usernamehere";
$mail->Password = "************";
/* ... addaddres, reply, subject, message -> the usual stuff you need ... */
$mail->Send();
?>
I just keep getting following responce:
SMTP -> ERROR: Failed to connect to server: Connection refused (111)
Aisomex & Animize Consultancy Services is an IT company providing hand crafted IT solutions for all kinds of business needs. Our major working heads are Web Tech, Software & Outsourcing. We concentrate on ASP.net and PHP Based web and windows applications. Beside our own software and products we also provide professional custom solutions ranging from small business to enterprise level. Among our products are both standalone desktop applications and components for integration into larger business solutions.
We are glade to work with you Thanks for your post, kindly have a look on our PMB.
Thank you.
Regards,
Dhaval Nirmal