PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
So I have a membership area, and I verify each user manually for certain reasons. Each Time I verify a user I would like an email sent to them, saying "Your verified blah blah". With my current code, it sends the email but gets sent to junk mail folder on msn and yahoo. My thunderbird doesn’t accept the email at all.
Using mail() isn't the reason your email's are getting labeled as junk. The receiver has no idea how the email was sent.
My guess is that the use of the work "verification" in the subject is the cause of your trouble. Try it with something different. (Or just for a test, something completely nuetral, like "birthday." )
mail() uses sendmail to send the mail. Sendmail rewrites the header and adds itself to it. This leads to the problem that the sender cannot be verified by the receiver.
This can only be fixed by adding the last parameter to mail() which leads to a header warning or using another mail function that has its own mail client.