Đang Thực Hiện

Send mail with PHP via Office365 in Hostgator

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?

<?php

$mail->IsSMTP();

$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 ... */

$mail->Send();

?>

I just keep getting following responce:

SMTP -> ERROR: Failed to connect to server: Connection refused (111)

Kỹ năng: PHP

Xem thêm: php office365 mail, php smtp office365, send mail php office365, php mail via office365, username gmail com password, subject php, send message, office365, my mail, hostgator, connect outlook, outlook mail server, php connection, office365 mail server, gmail host, php connect, smtp 111, connection refused 111, smtp 111 connection refused, gmail set outlook, set mail php server, smtp error connection refused 111, set mail server, server smtp com, send via smtp

Về Bên Thuê:
( 16 nhận xét ) Bogojina, Slovenia

Mã Dự Án: #1611636

5 freelancer đang chào giá trung bình $34 cho công việc này

toinnisfree

quick pro help. ftp and escrow required.

$50 USD trong 1 ngày
(511 Đánh Giá)
7.8
dhavalnirmal

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 P Thêm

$30 USD trong 0 ngày
(4 Đánh Giá)
3.2
techservices4web

Can I see the url where the mail function has been integrated.

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
mohammadmojrian

- - - - - - - - - - - - - - - - -

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
dhaval003

hello, thank you for your post please check your PMB for details.

$30 USD trong 0 ngày
(0 Đánh Giá)
0.0