Question

I am working on an email functionality in PHP, SMTP with PHPMailer. In my office we have different servers. Here, it's working fine. But, when I am trying to send mails from outside the office, it doesn't work. I am using SMTP Auth False. I'm providing Hostname and Port number only.

Why isn't it working?

Was it helpful?

Solution

If you are not authenticating against the SMTP server probably is because your SMTP works only for your local office network.

For security reasons, your SMTP server may be requesting authentication or just not responding to connections outside your local network.

You need to ask IT guys on your office so they provide you some SMTP credentials to use outside the office.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top