WordPress.org

Ready to get started?Download WordPress

Forums

WP Mail From II
Contact Form 7 (11 posts)

  1. Bob0221
    Member
    Posted 9 months ago #

    How can I make this plugin work with Contact Form 7? It over-rides the From settings in Contact Form 7 so if you hit reply, you basically reply to yourself?

    Thanks.

    http://wordpress.org/extend/plugins/wp-mailfrom-ii/

  2. Ben Huson
    Member
    Plugin Author

    Posted 9 months ago #

    This plugin filters the default from name/address very early so I'm surprised it interferes - I'm guessing Contact Form 7 must be setting them in a different way?

    The only think I can think of is it you can remove the WP Mail From II filters before the form is send and re-add them after. I'm not sure where you would be able to hook in to do this though, I don't know Contact Form 7 very well

    remove_filter( 'wp_mail_from_name', array( $WP_MailFrom_II, 'wp_mail_from_name' ), 1 );
    remove_filter( 'wp_mail_from', array( $WP_MailFrom_II, 'wp_mail_from' ), 1 );
  3. me
    Member
    Posted 5 months ago #

    I had the same problem
    I turned off the plugin - now "Contact Form 7" stopped sending emails

    what can i do for fix it?

  4. Ben Huson
    Member
    Plugin Author

    Posted 5 months ago #

    Did you try adding the remove_filter code above?
    If so you'll need to remove this if disabling the WP Mail From II plugin.

  5. me
    Member
    Posted 5 months ago #

    In fact, I did not understand where exactly to put this code?
    Before what?

  6. me
    Member
    Posted 5 months ago #

    I tried to de-active the wp mail from plugin or & delete the mailfrom the 2 tables from dbase- but its didnt help me anything

  7. Ben Huson
    Member
    Plugin Author

    Posted 5 months ago #

    Deactivating Wp Mail From II means it should not then affect anything. The 2 settings in the database are only used when the plugin is active so they shouldn't affect anything.

    Have you installed/upgraded any other plugins or themes in the meantime?
    ...or upgraded WordPress?

    Next think to check would be that your Contact Form 7 settings are all still correct.

  8. me
    Member
    Posted 5 months ago #

    nothing change in CF7 setting,
    but when i turn-off your plugin, CF7 stop sending mail in all forms
    so i have to use your plugin untill i fix this problem
    In fact, I did not understand where exactly to put this code?
    Before what?
    if you have a screen shot please

  9. nickandyhead
    Member
    Posted 5 months ago #

    This plugin seems to do a fine job of combating the problem of having hosting account information in wordpress's emails that are sent out.

    However, in gmail only, I still see a little bit of the problem.

    I suggest you test thoroughly with gmail. It adds an extra line to the email "from" field which is not desirable. I will gladly send pictures if you want.

    Also: to the person having trouble with contact form 7, I had very little problems installing the plugin (it works great other than the above stated issue.)

    I suggest you start from ground up and remove any changes you made and revert them back to normal. I didn't have to change anything crazy. May have a different hosting provider though... I have bluehost.

    Sincerely Yours,

    Nick

  10. Ben Huson
    Member
    Plugin Author

    Posted 5 months ago #

    Thanks @nickandyhead - I'll do some gmail testing.

    If you are able to send a picture to point me in the right direction that would be great.
    Please add a new issue and upload the image here...

    https://github.com/benhuson/wp-mailfrom/issues

  11. me
    Member
    Posted 5 months ago #

    remove_filter( 'wp_mail_from_name', array( $WP_MailFrom_II, 'wp_mail_from_name' ), 1 );
    remove_filter( 'wp_mail_from', array( $WP_MailFrom_II, 'wp_mail_from' ), 1 );

    where exactly to put this code?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.