0

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 [email protected] 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

1
  • Please add your code directly to your question. Do not use pastebin, as pastebins can be removed, rendering your question useless for future use Commented May 20, 2014 at 7:22

1 Answer 1

0

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

Try this...

// create email headers
$headers = 'From: iStudioFX <[email protected]>' . "\r\n" .
1
  • Thanks Matt this was indeed the problem, appreciate the help.
    – Emp FX
    Commented May 21, 2014 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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