I am using a simple contact form I created myself that consists of just a script (php) and a WordPress shortcode. It works fine except the headers are saying something like foo@somewebhosting.server54 instead of displaying my admin email (or my correct email). Can someone see where my mistake is? Thank you.

The two codes are here: Pastebin

  • Please add your code directly to your question. Do not use pastebin, as pastebins can be removed, rendering your question useless for future use – Pieter Goosen May 20 '14 at 7:22

Your 'From' header is not correctly formatted so it is defaulting to servers address.

Try this...

// create email headers
$headers = 'From: iStudioFX <no-reply@istudiofx.com>' . "\r\n" .
| improve this answer | |
  • Thanks Matt this was indeed the problem, appreciate the help. – Emp FX May 21 '14 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.