Added a mailing function to the email script.

Also added a redirect to /#thanks
I'm going to make a little lightbox for that :d