On the first post on the page
There is mention of an app I’ve created to do just that it’s called Trigger to Take Pictures
You can configure it to detect motion of a open/close sensor and trigger a take picture. However this won’t eMail the picture. You can however turn on the a switch using the app, i.e. turn on the Camera Monitoring feature, this will detect motion and then automatically eMail it to you (if configured through the Foscam device type)