Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 06:06 AM
It is for a PDI
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 06:10 AM
Did you check for Email Accounts and do a Test connection?
Also, cna you try changing the From to something as below
<instancename>@servicenowdevelopers.com
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 06:29 AM
I found the answer to my problem, I can send my emails now with:
var emailOutbound = new GlideEmailOutbound();
// Set the recipient email address
emailOutbound.addRecipient('exampleRecipient@gmail.com');
// Set the sender email address
emailOutbound.setSender('exampleSend@gmail.com');
// Set the subject of the email
emailOutbound.setSubject('Hello from ServiceNow');
// Set the body of the email
emailOutbound.setBody('This is the body of the email.');
emailOutbound.save();
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 06:30 AM
@Jaspal Singh Thank you anyway for trying to help 🙂
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 06:37 AM
Great to know.