How to send validation email without going into the spam folder?

前端 未结 3 1835
暗喜
暗喜 2021-01-22 09:40

I have a PHP website that send a validation code when a new account is created.

My problem is since few months, a lot of those email goes in the spam folder.

I t

3条回答
  •  深忆病人
    2021-01-22 10:30

    Many times, when using the builtin mail function, the configuration isn't set up to help prevent this from happening. The reason is the Received header is set to an internal IP address, like 192.168.x.x which is used as an indicator to most spam filters. You may want to try finding a simple SMTP class that connects remotely so the headers get set properly.

提交回复
热议问题