Make sure your e-mail form isn’t blocked by your SPAM filter

Lets discuss: a customer submits your form wondering for more detailed information about product, but you don’t receive his inquiry because your SPAM filter falsely determinates the e-mail with form results as SPAM and deletes the message (moves it to Junk folders). It is very bad for your business.

Making sure that form messages aren’t blocked by SPAM filter it is the simple task. You may add something like (MYFORM) to the e-mail subject and setup your SPAM filter to white list any e-mails which subject starts with (MYFORM).

For the example we need to use the final form from our manual to describe this form the e-mail subject is defined by the user, who submits the form, so you aren’t be able to know what the e-mail subject will be. W can add the (MYFORM) text before any subject. The code is:

$subject  = check_input($_POST['subject'], "Write a subject");

We will add, with one more line help, (MYFORM) to the beginning of e-mail subject:

$subject  = check_input($_POST['subject'], "Write a subject");
$subject  = "(MYFORM) " . $subject;

If you enter something like TEST subject into the subject field it will actually show up as (MYFORM) Test subject using this code!

It remains only to setup your SPAM filter not to block any e-mails which start with (MYFORM). Your SPAM filter (or e-mail client) should have a possibility of a white list or filter option which should allow you to do that.