• I’m using a WordPress theme that has a simple PHP contact form that allows users to email each another. However, when one user sends an email to another, it’s showing my WordPress admin email as who it’s from and not the email address the user inputs in the email field when they fill out the form. (The form just consists of “Your Email” and “Your Message”)

    I like to think I’m pretty well versed in PHP and WordPress, but I’ve spent 2 days trying to figure this out.

    Here is a pic of the code

    The GREEN area references the user’s address who is receiving the email.

    The RED area references the title of the post the user is emailing about and shows up as the Subject.

    The PURPLE area obviously references the Message.

    The ORANGE area goes in the body of the email and “.$email” does put the senders email address there.

    But, like I said, I need emails to be “from” the sender’s email address, not from from WordPress admin email. It serves no purpose if the receiver clicks Reply in their email account, they’ll just be replying to my Admin address and not to the sender.

    The way it is now, in order for the receiver to reply, they have to copy and paste the senders email out of the body of the email into a new email. Hardly convenient.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Contact Form Not Working’ is closed to new replies.