When I Turn This Plugin On My Contact Form 7 From Email Is Overidden?

Hi

Love the plugin : )

It’s doing nearly everthing I want except not playing so nicely with contact form 7.

With the plugin turned off I can set the FROM email to be the email of the person submitting the form. This makes it really easy to reply instantly to queries submitted by forms on wp.

With the plugin turned on this is over ridden somehow that I can’t fathom and now all of my queries are addressed as being from wordpress itself.

Is there a way to stop this from happening as this plugin is perfection otherwise.

Cheers

Chris

  • wpmudev75
    • The Incredible Code Injector

    Hi @aristath

    That doesn’t help me as originally when I used CF7 before using this html template plugin I could write into the from fields in CF7 that the sender was the submitter of the form. That helped me immensely as I only had to hit reply to answer form queries.

    With the plugin turned on and this plugin I am still in the same dilemma only now I am writing emails back to myself if I hit reply as this only masks the outgoing email address.

    Thinking I might have to hack this plugin myself to stop it from hijacking the to address… no idea why it needs to do that!

    Would love it if the developer could have a look and it too.

    Thanks

    Chris

  • aristath
    • Recruit

    From your above post I got a bit confused….

    Do you want to change the from address or the to address?

    I have notified the plugin developer about this, hopefully his insights will help us figure this one out.

    Please keep in mind though that plugin developers have a lot of responsibilities so this might take a bit longer than a normal ticket.

    Cheers,

    Ari.

  • Aaron
    • Ex Staff

    That’s very interesting. We don’t mess with any other headers such as the From or Reply-to in the plugin, just filter to add our own. Other header can be added and are not stripped just fine, so I believe that the problem might be with CF7 not changing the headers properly via filter maybe.

    Can you try one thing? Edit the wp-content/plugins/htmlemail/htmlemail.php file line 111 from:

    $headers = "Content-Type: text/html; charset="" . get_option('blog_charset') . ""n";

    to

    $headers .= "Content-Type: text/html; charset="" . get_option('blog_charset') . ""n";

    And see if that makes a difference?

  • wpmudev75
    • The Incredible Code Injector

    Hi @Aaron

    Thanks for replying.

    I tried this edit and got no difference in response from the form.

    Curious that CF7 does this to an email.

    If you have no other ideas I may take this to CF7 support or just leave it be as the html emails look a lot better than that small functionality issue.

    Thanks

    Chris

  • wpmudev75
    • The Incredible Code Injector

    Hi @Aaron

    I just updated the plugin now and tested.

    I am still having the same issue.

    If you have any other ideas that would be appreciated although I am happy to work around this issue by including user data in the body of the message instead.

    Cheers

    Chris

  • wpmudev75
    • The Incredible Code Injector

    Hi @aristath

    Ok… one thing I didn’t spot until now is that the emails that I get are coming labeled as WordPress but have the users email as submitted as I would like.

    So somehow the email name is being overridden by the plugin leaving the email itself intact.

    I have no idea how to fix this so I came back to tell you all about it.

    Thanks

    Chris