Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger email from Script #1545

Open
ersureshbe opened this issue Oct 28, 2024 · 7 comments
Open

Trigger email from Script #1545

ersureshbe opened this issue Oct 28, 2024 · 7 comments

Comments

@ersureshbe
Copy link

Use the following script to send email dynamically

var mail = new GlideEmailOutbound();
mail.setSubject('Hello darkness, my old friend');
mail.addRecipient('[email protected]');
mail.addAddress('cc', '[email protected]');
mail.setBody("I've come to talk with you again");
mail.save();

@wiz0floyd
Copy link

Did you mean to create this as an issue?

@ersureshbe
Copy link
Author

It wont create an issue. Instead of using 'Notification' OOB module you can write 4 line code and initiate the notification based on your business requirement.

@wiz0floyd
Copy link

You created an Issue on GitHub. Did you mean to submit a pull request?

@ersureshbe
Copy link
Author

Yes.

@wiz0floyd
Copy link

Do you want to make a pr with this code snippet so that you can get Hacktoberfest credit?

@ersureshbe
Copy link
Author

Yes, Can you please add it?

@wiz0floyd
Copy link

You will need to create your own pull request to get credit. Please see the link here and look at the contributing and readme files for any repo you wish to make additions to.

https://www.servicenow.com/community/developer-advocate-blog/servicenow-hacktoberfest-2024/ba-p/3052690

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants