How to send email using glideemailoutbound api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2023 11:31 PM
How to send email using glideemailoutbound api. I want to send email from my script include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2023 11:38 PM
Hi @dev115415 ,
Please refer to this article: https://www.servicenow.com/community/developer-articles/glideemailoutbound-send-notifications-using-...
If my answer has helped with your question, please mark it as correct and helpful
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2023 11:53 PM
@Karan Chhabra6 I tried that approach but it did not work. was it working for you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2024 12:18 PM
First step your script include needs to be under Global application.
then try to use this sample script it works well for me
var email = new GlideEmailOutbound();
email.setSubject("Email subjct");
email.setBody('The Email Body');
email.setFrom('set the from here');
email.addRecipient('recipient');
email.save();