php mail() function gets spam email

后端 未结 6 1887
野趣味
野趣味 2020-12-11 19:42

All my emails I am sending in local WAMP or on server, with PHP mail() function, goes to SPAM folder always.

While looking for the issue, I found we\'ve to set heade

6条回答
  •  青春惊慌失措
    2020-12-11 20:36

    What i've found locally that sendmail_from was not set into my WAMP, and once i used, ini_set('sendmail_from', 'some_valid_email_address'); it gets to Inbox !

    Wohaaa... and working into live as well..

提交回复
热议问题