Support » Plugin: Contact Form 7 email verification » Submit not via admin

  • Resolved Peter Anderson

    (@peterfeatherstone)


    Hi there,

    Great plug-in. Had to hack it a little to get round the issue with using SMTP mail and it not picking up the mail recipient, by using mail_2 and changing some other settings.

    The one thing I am stuck with however is the verification code. On my site for example it sends you to an admin page:

    /wp-admin/admin-post.php?action=wpcf7ev&email-verification-key=18650da8cb19b407

    The problem is that if the user isn’t logged in it is asking them to do so which obviously not everyone that visits our site will be (in fact nobody will as registrations are disabled).

    Is there a way to do this without requiring a user to login, by sending them to a different page etc.

    Many thanks

    Peter

    https://wordpress.org/plugins/contact-form-7-email-verification/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author magician11

    (@magician11)

    Thanks for your positive feedback Peter!

    I think you probably have a security thing happening blocking people from accessing that area.. because it does work for users not logged in.

    This line in the code should allow for users not logged in to submit requests. I have tested that.

    I have had users with the Woocommerce plugin (older version) have similar issues as there is a checkbox that blocks that area completely. Do you that or a similar security plugin?

    Let me know how you go.

    Peter Anderson

    (@peterfeatherstone)

    Hi magician11,

    THanks very much for the quick response!

    We have quite a few security processes set up on the site to be honest, for example admin blocked to specific IP addresses, hidden admin area, 2 step authentication etc. etc. etc.

    This probably means it will be almost impossible for me to get this working I fear.

    Is there a way to post it to a specific page, i.e – http://www.example.com/verification/?action=wpcf7ev&email-verification-key=18650da8cb19b407

    I’m assuming not as I imagine it needs that admin-post.php file to work it’s magic.

    Many thanks

    Peter

    Plugin Author magician11

    (@magician11)

    Hey Peter,

    I did have an earlier version of the code that didn’t use that admin area.

    It’s here.

    Basically the URL was then

    /?email-verification-key=

    My hook would check for each page load. The code would then just check for the presence of that query string. You’ll see that code here.

    So yes, it’s totally possible to not use the admin area. There was a bug in using the above code (double calls/emails being sent out).. so we switched to using the current method.

    Peter Anderson

    (@peterfeatherstone)

    Hey magician11,

    Great!

    Many thanks for this… I won’t be able to test it out until Tuesday but it looks as though that is exactly what I need.

    I will try and work out a way of stopping the double calls, but the fact that I can post not from the admin is the main thing for me right now.

    Thanks so much for your great support, it is much appreciated!

    Peter

    Plugin Author magician11

    (@magician11)

    Pleasure Peter! Let me know how you get on!

    Peter Anderson

    (@peterfeatherstone)

    Hi magician11,

    Thanks for all your help.

    This is now working perfectly without the need for the wp-admin area!

    I haven’t noticed any double submissions yet but will be sure to look out for them, it’s not such an issue for us anyway, the security was number one.

    Many thanks again for your support!

    Peter

    Plugin Author magician11

    (@magician11)

    Thanks Peter! And thank you for giving the plugin its first rating! I super appreciate it.

    Great to hear you’re not getting double submissions. Interesting.. maybe I’ll go back to that verification method down the line.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Submit not via admin’ is closed to new replies.