WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
email address not being captured (9 posts)

  1. gstarr
    Member
    Posted 3 years ago #

    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?

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

  3. gstarr
    Member
    Posted 3 years ago #

    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.

  4. gstarr
    Member
    Posted 3 years ago #

    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.

  5. webjunk
    Member
    Posted 3 years ago #

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

  6. gstarr
    Member
    Posted 3 years ago #

    I have just the standard stuff:

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

    Message Body:
    [your-message]

    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>

    <p>Subject:
    [text your-subject] </p>

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

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

  7. webjunk
    Member
    Posted 3 years ago #

    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 <jsmith@smith.com>

    see if you still get WordPress in the From field.

  8. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    If you checked "Use HTML content type" checkbox, uncheck it. Otherwise <jsmith@smith.com> in the message body will be treated as a HTML tag.

  9. gstarr
    Member
    Posted 3 years ago #

    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 skullbit.com which overrides the default wordpress@mydomain.com 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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic