Skip to main content

Notification Utils

Syntasa provides a notification utility function called sendNotification to send email notifications. This function is part of the synutils.notification module. 

Method and Accepted Parameters

The sendNotification function accepts three parameters:

  • recipients: A comma-separated string containing the email addresses of the recipients.
  • subject: The subject line of the notification email.
  • message: The body of the notification email.

Example Usage:

Python

/**  
*
* @param recipients comma seperated values
* @param subject
* @param message
*/
sendNotification(recipients: String, subject: String, message: String)

Example :
sendNotification("test@example.com,foo@example.com", "test-subject", "test-message")

This code snippet sends a notification email with the subject "test-subject" and the body "test-message" to the recipients test@example.com and foo@example.com.

Scala

/**  
*
* @param recipients comma seperated values
* @param subject
* @param message
*/
sendNotification(recipients: String, subject: String, message: String)
Example :
sendNotification("test@example.com,foo@example.com", "test-subject", "test-message")