Have had to add reCapatcha to my website. Now automation tests fail (obviously)

I have automation tests that run on my site every night to test that the site loads, displays certain key bits of text and fills in and sends a contact form.

Today the test ran and passed but we did not receive the contact form messages from the website.

Turns out that our mail server had been blocked as there were too many bounced mails being sent. Bots had been using the contact form to send spam.

The solution to this is reCapatcha which I have added to the site… The problem now is that my automation tests (obviously) fail.

Are there any solutions to this? If it weren’t for the automation tests it might have been a long time before I realised that my mail server was not working and I could have missed a lot of of business.

Thanks.