cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Application.sendNotification() method does not work for sending email notifications.

Ganesha
Participant
0 Likes
72

Hi Team,

We have a requirement to send dynamic email notifications to users based on certain conditions. To achieve this, we used the Application.sendNotification() method; however, it did not work as expected., no email triggered, no error as well.

Here is an example of the code:

Application.sendNotification({
         title: "Test",
         content: "The quantity sold is below estimation. For more details, please check it out.",
         receivers: ["GBA3KOR"],
         mode: ApplicationMode.Present,
         isSendEmail: true
});

As per this blog, the pre-requisite is enabled, email notifications are enabled in SAC -> User Profile -> Setting 

https://community.sap.com/t5/technology-blog-posts-by-members/how-to-tri

View Entire Topic
Ivan_Camac
Participant
0 Likes

Hi Ganesha,

As per sap note 3467724 for the sendNotification() method to work, you must have your own email server configured in SAC. I would guess this your problem as the default SAP mail server will not work. 
Cheers, Ivan.