• Resolved readconsult

    (@readconsult)


    Hello,

    I could not get this plugin to work with the “Contact Form 7” plugin at all, it just endlessly spun the “working” indicator beside the Submit button.

    I switched over to the “WPForms” plugin and am now able to have the site send me the Contact Form data.

    However, the reply-to field is generally the person that submit’s the form’s email address and this is not transferring to the notification email that is sent. It uses the email address of the authorized sending account as the reply-to address. Is there any way to fix this, or is this likely an issue with the WPForms plugin?

    Thank you for an excellent plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • edwardcross

    (@edwardcross)

    Regarding Contact Form 7, I know I looked at this issue ages ago and couldn’t figure out a resolution.

    It seems, because I intercept the PHPMailer() event through WordPress’ wp_mail() pluggable function, I have to stop the PHPMailer event to stop WordPress trying to connect over STMP, instead capturing the mail attributes and sending them via Microsoft Graph’s REST API.

    Whilst the wp_mail() event then returns true, it seems PHPMailer doesn’t, and because I think Contact Form 7 is waiting for PHPMailer to return true, it keeps the spinning animation, rather than showing a “mail sent successfully” message. I ran out of ideas/trial and error approaches to getting around this limitation, but I’m open to any ideas from others more knowledgeable than me!

    I think I may have to provide an alternative to use OAuth over SMTP, rather than the REST API (which I believe is what other paid for plugins use), as this will mean I don’t have to intercept and stop the PHPMailer events in order to redirect the mail request over a REST API.

    Regarding the reply-to address, it’s set to the authorized sending account, as it is that account that is sending the notification email (it’s not being sent from the email account of the individual filling in the form with their email). However, I will take a look at how I’ve forwarded the reply-to address to the Graph-API. I have a feeling I’ve just used the from address for both the from and reply-to variables in the JSON schema, when perhaps there is a reply-to variable within the wp_mail event that I should have used.

    Regards,

    Ed

    edwardcross

    (@edwardcross)

    With regards to the reply-to issue, I have now changed the code within ver. 1.5.0 to recognise if there is a ‘reply-to’ header set by wp_mail(), and if so, it will change the from address to the value of the reply-to header. In theory this should address the reply-to issue.

    drawido

    (@drawido)

    I use WPforms on my wp biz website with reply-to field. The header info from my test email has no reply-to field. Is this because of WP forms plugin or something else? Thanks

    Thread Starter readconsult

    (@readconsult)

    Hi Edward, the reply to address is still being stripped and replies go to the MS address that is sending the emails out. Any chance there will be a working fix for this?

    Thank you.

    A.

    Thread Starter readconsult

    (@readconsult)

    The email address issue seems to be fixed as of version 1.6.0

    Thanks!!!!!

    Andrew

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reply to address being stripped from contact forms’ is closed to new replies.