The one part you need is a command line SMTP emailer. Here it is -> http://sourceforge.net/projects/blat
This is not an offer to write your script. Just supplying the critical component to make it work.
Bob
Hi,
I have a camera that is motion-sensitive. It records little 5 second clips and writes them to a file.
I want my machine to automatically email me whenever this file is written to. If it could attach the file along with the email, great. If not, notification should be enough... although I would really like the file to be instantly copied from that local machine to another secure location.
Thanks in advance. Is there a way to do this? Even just the email part? I could log in remotely and grab the file if I knew it existed. I just worry about the times I cannot do that quickly enough.
Best,
Josh

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic