I had a Wink - Lock after 30 minutes and send email?

There is no native way to automate based on a specific lock code. Some third party apps like RBoy posted above can.

Also, you shouldn’t have paid for Webcore. it is a free smart app.