search

Home  >  Q&A  >  body text

PHP emails can be sent locally for testing, but cannot be sent on the server.

Trying to smtp.163.com:465 

Error: Remote host returned "" 

Error: Cannot connenct to relay host smtp.163.com Error: (0) 

Error: Cannot send email to XXX.com

我不是大锅我不是大锅2660 days ago1455

reply all(2)I'll reply

  • 我不是大锅

    我不是大锅2017-08-14 17:34:39

    Yes. . Doesn't https use port 465? Then Baidu asked about fsockopen. You need to configure php.ini

    I see that my allow_url_fopen is on, and then disable_functions is empty and there are no restrictions.

    It just doesn’t work. No solution found.

    reply
    0
  • 我不是大锅

    I didn't pay attention, so I wrote an answer. It won't be deleted yet. . .

    我不是大锅 · 2017-08-14 17:36:13
  • 代码输入中...

    代码输入中...2017-08-14 17:31:00

    Can’t connect to the mail server

    reply
    0
  • 我不是大锅

    yes. . Doesn’t https use port 465? Then Baidu asked about fsockopen. You need to configure php.ini. I see that my allow_url_fopen is on, and the end of disable_functions is empty and there are no restrictions. It just doesn't work. No solution found.

    我不是大锅 · 2017-08-14 17:34:53
  • Cancelreply