When users request for their password to be sent to their email address an email is sent, but it always goes into the junk folder and is classed as dangerous, how can I stop this and make the emails sent by my site secure?
You would want to add more headers to the initial email. If you using cPanel there is also a way to add some extra security (to confim the email was from the server it says it's from).
I recommend looking into PHP sending stuff via POP3/IMAP.
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
Spam/Junk filters determine whether or not an eMail is classified as spam based primarily on content. What does the eMail look like? Does it contain a lot of markup, or is is just plain text? Does it mention "automated response" or "Viagra"?
Also, I would recommend sending the mail through your mail server (instead of just using mail() / sendmail) Your mail server should have a non-generic-looking RDNS entry which will help with big providers.
There are lots of other things to help ensure your mail is delivered, especially to companies that use whitelists, but the content of the message is the first thing to look at is the content. If you could post an example complete with headers it may help.
As for added security (beyond simply getting the mail through) I would suggest an RSA signature.
__________________
Chris Duerr
AddonChat Java Chat Software
I removed the <a href> and it formatted the link ok in the email The email is still sent to the junk mail folder, if I included my hosts webmail server information would this make the email more secure and not sent to the junk folder?
I can get the details of the webserver to use, but where do I specify them in the email script?
Also, where does POP3 come into sending emails like this?
I'm not an ASP coder, you may want to open a new thread in a different forum. The big thing I see is that the mail.from should be a real email address -- your code looks like it is setting the From header to just a domain.