marvin

Hey people, experimenting with NoCaptcha for Spam protection. I’ve installed via Composer and done /Dev/Build?flush=all. But something’s gone astray…

  1. I’ve got the $form tag showing up on EVERY page (assume this means I should do a separate page template for ‘Contact Us’?
  2. Apart from the fact that the CAPTCHA field will sit underneath the ‘Submit’ button (which isn’t ideal from a Usability POV), the actual CAPTCHA isn’t loading — which I assume is down to the fact that site is still on dev machine? Or is there something else lacking? Any pointers?
Files: Requires logging in with Slack to view/download
form.png
nightjarnz

It looks like you're thinking it might have shown up as text on a button or something at some point An easier conceptual thought for you @marvin might be to: Think of $email as the "compose" window with Outlook, apple mail, gmail, whatever. To, From, Subject are all the little input boxes above the email And body is the message itself. Then functions like send are the buttons you can press to do stuff... like send :P

null

I usually point my local mail server needs to Mailgun, needs an API key but it's a small price to pay to avoid repeated local mail server issues

marvin

hey @nightjarnz, thanks but it didn’t work even with a ‘real’ address in place… think @null has a point about the absence of mail server in local environment however! So hopefully it WILL work in the ‘real’ world!

null

^^ start there, then troubleshoot your mail server if needed

null

Like, I can't open Gmail and fire off an email to "mailto:[email protected]|[email protected](opens in new tab)", it's going to complain

marvin

Thanks @null, still in dev environment on local machine and no, I don’t have my own web server set up. Thought I’d done something wrong! On to the next phase — field validation and spam protection!!

null

or <mailto:[email protected]|[email protected]>(opens in new tab), which isn't a valid email address

null

Most likely your code is fine, but you don't have a mail server set up on your local machine. Or you do, and your ISP prevents you from running a mail server on their network