• Resolved Gerard Blanco

    (@sixaxis)


    Hi there!

    Just letting you know that the plugin is not working with Contact Form X. When I set up a form with it and I try to send an email, the form throws out an error unless I comment line 108 in their file core-email.php. That’s the line that sets the From: header.

    If I switch your plugin with Easy WP SMTP (which I would very much not want to do so), everything works well.

    Let me know if you need additional information to fix this ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Noor Alam

    (@naa986)

    @sixaxis, I have just tested the plugin on Contact Form 7. It seems to be working fine. Have you tried the test email option? Please make sure to keep other SMTP plugins deactivated when SMTP Mailer is active.

    Thread Starter Gerard Blanco

    (@sixaxis)

    Hi @naa986,

    The problem is with Contact Form X, not Contact Form 7. Let me please clarify the issue, I’ve been able to make it easier for you to debug.

    I created a simple plugin, and I enter this code.

    $headers  = 'From: Noor <[email protected]>';
    $result = wp_mail( '[email protected]', 'WP Mail Test', 'Mail is working', $headers );
    
    if (!$result) echo "ERROR";
    else echo "OK";

    And I compared Easy WP SMTP and your plugin. The result is that I see OK with Easy WP SMTP and ERROR with your plugin.

    However, if I remove the $headers parameter, everything is okay. I think you are doing some manipulation to the From: header that is a bit buggy ??

    Plugin Author Noor Alam

    (@naa986)

    @sixaxis, I have been able to get the plugin to work with Contact Form X. Please use your SMTP from email in the Recipient settings.

    Thread Starter Gerard Blanco

    (@sixaxis)

    Got it working, thanks. So, bottom line, the From header must be the same as the email set up in SMTP Mailer.

    Can you please tell me why this is not a restriction in Easy WP SMTP and why is it better (or not) to restrict it this way?

    Plugin Author Noor Alam

    (@naa986)

    @sixaxis, These restrictions are not coming from the SMTP Mailer plugin. For security reasons, your SMTP provider may reject the connection if the from email address does not match your account email address. By setting a from address in your contact form settings, you are ensuring that every outgoing email from the contact form contains the correct from header.

    I’m not the author of Easy WP SMTP. I don’t know how it works.

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