Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] email address not being captured

  • I just started using cf7 and I noticed that the email address that the user inputs is bering lost – meaning when I get the email, the “from” header is not from whoever submitted the form but rather from the wordpress site. Also, in the body of the email, the name of the submitter appears but the email address does not.
    Anyone else have this issue?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Takayuki Miyoshi


    What should I be seeing in the docs? I checked those links and it doesn’t look like I’m doing anything incorrectly.
    I have already double checked to see that I have email tags correctly placed in the “from” header and in the email body as well. But when the email is received, the other tags show the user’s information (for example: the “your-name” tag displays the name of the user in the email body) but the “your-email” tag doesn’t show up at all in the from header or in the email body – it’s as if I didn’t put anything there!
    Also interesting, even though I put the “your-name” tag in the “from” header, that doesn’t show up either.

    I installed the plugin Contact Form 7 to Database Extension and I see that the user’s email address is being captured and stored in the database. It’s just not coming through as part of the email. Strange.

    Might help if you tell us Exactly what you have in the Message Body.

    I have just the standard stuff:

    From: [your-name] <[your-email]>
    Subject: [your-subject]

    Message Body:

    and on the left side in the “From:” box I have:

    [your-name] <[your-email]>

    My form is also standard:

    <p><span class="req-mark">*</span>Your Name:
    [text* your-name] </p>

    <p><span class="req-mark">*</span>Your Email:
    [email* your-email] </p>

    [text your-subject] </p>

    <p>Your Message:
    [textarea your-message] </p>

    <p>[submit "Send"]</p>

    Honestly not sure. It will insert WordPress in the From field if any other sender address is not formattred right.
    Try in the Form field putting:
    John Smith <>

    see if you still get WordPress in the From field.

    Plugin Author Takayuki Miyoshi


    If you checked “Use HTML content type” checkbox, uncheck it. Otherwise <> in the message body will be treated as a HTML tag.

    Takayuki, Bingo!
    I unchecked the html content type setting and the email addresses show right where they should in the body of the email!
    As for the “from” field – the angle brackets don’t hurt even if using html content type.
    But I do see where my problem is coming from. I am using another plugin called “WP from Email” by which overrides the default address from showing in emails sent by the site. Apparently, it is also overriding whatever I put into the “from” field and when I deactivate it CF7 works fine.
    I’m not sure why there would be a conflict. Even with the “WP from Email” plugin active, I have sent emails with a custom “from” header using the wp_mail() function in other plugins. Any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Contact Form 7] email address not being captured’ is closed to new replies.