Adds email templates and mail() functions.