/    Sign up×
Community /Pin to ProfileBookmark

trouble with phpmailer using smtp on windows

Hi guys,

I have been trying to setup an enquiry form on a windows server running php and IIS on windows.

I am using smtp and phpmailer to send the mail.
This works fine when I send a mail to my smtp mailer server on my server.

$mail->Username = “[email protected]“;
$mail->Password = “mypassword”;
$mail->Host = “mail.mysmtp.com.au”;
$mail->Mailer = “smtp”;

But when I switch it to my clients smtp server it fails.

$mail->Username = “[email protected]“;
$mail->Password = “clientpassword”;
$mail->Host = “mail.clientsmtp.com.au”;
$mail->Mailer = “smtp”;

It like my clients server can’t email to itself.
I tryed changing

$mail->Host = “mail.clientsmtp.com.au”;

to

$mail->Host = “localhost”;

but that did not work either

Thank you in advance for any advice

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @celshader spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...