I’m not receiving the mail in my hotmail account?

Some mail providers, such as Hotmail, only allow the relay of mail through their SMTP (sending server) if you specify an optional parameter in the PHP mail() command.

If the address you are trying to receive email at is a hotmail or outlook address, and it’s not getting through, change the following line:
if (mail($yourEmail,$subject,$message,$headers)) {

to:
if ( mail( $yourEmail, $subject, $message, $headers, '-fEMAIL@DOMAIN.COM' ) ) {

…where email@domain.com is a valid email address on the sending domain. E.g. if the form is on www.joebloggs.com, use a valid e-mail address at joebloggs.com. (Don’t remove the -f at the start – it’s not a typo!)

Save and re-upload the contact form, and you should now receive email in your hotmail account.

Get Premium

All the great features of the free contact form, and more besides...

Buy Now - £19

  • UTF-8 support: ideal if you receive mails containing characters such as é, ó, ü and so on
  • Even more spam protection: take advantage of better functionality in newer versions of PHP
  • Repeat submission protection: stop people from submitting the form multiple times in a row
  • Read more about the premium mail form...