Unable to send a simple email from a MID Server Script Include in my PDI

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2023 06:02 PM
Hi,
My team is trying for a requirement to send an email from a MID Server. For this, we have MID Server setup ready in our PDI and the email config is also ready. We would like to add the code in MID Server Script Include and create a Payload on the ECC queue to give a shot on this. But we are unable to send the email using below snippet.
===========
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2023 07:53 PM
Check this answer once.
Please mark my answer helpful and accept as solution if it helped you 👍✅
Anvesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2023 09:13 PM
Hi Anvesh,
I have seen this article but it didn't help me much.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 02:40 AM
Hi @Ravi Kumar Pisu ,
Have you seen this post in relation to emails from PDI: Changes to sending emails from PDIs (servicenow.com)
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 12:55 PM
Hi Anders,
I have enabled the sending email feature in my PDI since Tokyo and I am able to send the emails by running the Background Scripts option manually. For this particular scenario, I am unable to do that since I doubt on the MID Server script include logic. Somewhere it is failing and I couldn't figure it out.
Thanks,
Ravi Kumar,