I am currently using the php mail() function to send confirmation emails. As you all know, this function doesn't exactly work the best. I need a better one, that will work more efficiently and not get filtered as spam. Users sign up, and I need them to confirm their email for fraud purposes. Please let me know how you do this, or if you know a better way. Rep for those who can help!
not sure how to guarantee it wont be filtered into their spam folders as that will depend on their mail settings. X-Mailer PHP seems to be usually pretty decent at making it to inboxes. To try to guarantee highest success rate though, you'd have to get pretty fancy with trying to use something like say $_POST['user_email'] in the REPLY TO section , and try to poke a string in there and a auto-resend so the mail goes to them appearing as if it has been replied to as opposed to firts time mail. I dont know if theres a 'simple' fix for that type of thing though - if there was , every spammer would be using it to get "RE: Your Question" mails to inboxes by the billions.
It's not mail() that's causing it to be filtered as spam. Chances are that it is either because of the minimal email header or from the sending ip address not matching the correct domain. Build a complete header and send the message to an email box that is filtered by spam assassin to see what problems you might have with the email message itself.
What is this complete header? Like: <html><head></head><body></body></html> That kind of header or... am i way out in left field still.
I was referring to the email header, not the HTML. Send yourself an email via the script and see what else is added to the header (e.g., gmail adds whether the sending IP is authorized based on a reverse DNS lookup).