some of my email from our site are going to spam folder as we are using mail() functions. we understand that it can solved using our own email server but i need quick solution in our site and i found following code from php manual. my question is that will it work for any webhosting company and is it enough for non-spam email detection? ini_set(sendmail_from, "info@mywebsite.net");
I'll answer your second question: "is it enough for non-spam email detection?" No, it's not enough. Spam filters also look at sent headers, content of the email, etc.
thanks. may be we should check our headers and check others all possible causes as well. but does it (ini_set(sendmail_from, "info@mywebsite.net") really help for sometimes or for some email servers?