質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top