Pretty much just what the title says. How would I go about programming the pi to take a photo on a keypress (ie. spacebar etc) and then automatically send the photo in an email to a specified email address? I know absolutely no programming languages for the pi (I design websites with HTML, PHP, and CSS, but that's about it) but I realize that they are no use in this application. Also, I don't have the camera module, but I was considering using a USB webcam instead.
Thanks in advance for your help