Php email form

January 31, 2010 at 07:28:47
Specs: Windows XP, 3GB

I try to make a homepage and put a html & php email form.
I found some websites which offer free codes for php email form. When I send email from my website, the mail goes direct to SPAM.
2- How to avoid this problem.

See More: Php email form

Report •

February 1, 2010 at 12:27:49
try not emailing from yourself to yourself! if you continue to have problem, consider changing your server ;)

Report •

February 26, 2010 at 08:49:52
Hi, check with your website hosting provider. Is the email on your PHP form on the same domain as your website? Some will put restrictions on the PHP email form if the email is not in the same domain as your hosting provider. Also check to see if your domain/IP address is flagged as a spammer. If you are on a shared hosting server, it could be someone else on the server that has been flagged as a spammer that is causing the issue. Regardless, do give your website hosting provider a call to eliminate the possibility that your domain is listed as a spam domain or is on a shared server with a domain that has been flagged for spam.

Now, when you have eliminated that variable, you'll want to check the php code itself. Make sure that it is not generating insertions of website links. Also make sure that you have put in PHP form validators to reduce the chances of your form being hacked. For example, make sure that your PHP code validates each data field on your form (valid email address format, phone format, etc.). As example, you may want to thwart hackers by eliminated stripslashes. You might also consider adding question fields or image questions like CAPTCHA for another layer of security validation. Make sure that you do not have your email address visible anywhere else on your site as spambots know to seek out 'mailto' for email addresses.

Report •
Related Solutions

Ask Question