Does 'GlideEmailOutbound()' class supports attachments ?


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...

Eg:-

var mail = new GlideEmailOutbound();
mail.addAddress('cc', '123@123.com');
mail.addRecipient("abc@abc.com");
mail.setSubject("Test Email");
mail.save();

 

More info: https://developer.servicenow.com/app.do#!/api_doc?v=newyork&id=c_GlideEmailOutboundScopedAPI

 

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.