Added email().

This adds the ability to send emails from scripts, with relatively little code.