Using the GlideEmailOutbound() class its methods, we can create emails from the scripts.
There are different methods available for adding the Recipients, CC, subject, body, watermark etc...
var mail = new GlideEmailOutbound();
There will be a question about how to add an attachment ?
Answer: As of now there is no attachment manipulation is available in GlideEmailOutbound from scripting layer.