- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 05:37 AM
I have used the following script to send the mail, but it is not working.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 08:58 AM
Hi @Dhanyasri ,
Please refer below code
var mail = new GlideEmailOutbound();
mail.setSubject('Outbound Email Send');
mail.setBody('Hello, Email send successfully');
mail.addRecipient('adela.cervantsz@example.com');
mail.save();
It got updated in email log table as well
Please mark my answer correct and helpful if it works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 08:42 AM
Try with below approach, I tried in background script it is working
var mail = new GlideEmailOutbound();
mail.setReplyTo('agent@abc.com');
mail.setSubject('Testing outbound email');
mail.addAddress('cc', 'admin@example.com');
mail.setBody('Hello world!');
mail.addRecipient('abel.tuter@example.com');
mail.save();
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 08:58 AM
Hi @Dhanyasri ,
Please refer below code
var mail = new GlideEmailOutbound();
mail.setSubject('Outbound Email Send');
mail.setBody('Hello, Email send successfully');
mail.addRecipient('adela.cervantsz@example.com');
mail.save();
It got updated in email log table as well
Please mark my answer correct and helpful if it works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 03:10 AM