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.