Inquiry Regarding Sending Notifications email Using only Sunbird Backend #196
-
Hello @AmiableAnil, @rhwarrier, @amit-tarento, As per our requirements, we need some custom development depending upon sunbirdED backend (Not frontend) that involves sending emails to users (notifications via emails). for that, we are trying to check users API, but in the user API we can see email ID's in the masked format. could anyone provide guidance on how to effectively send emails to users. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@ManojNathIC If you have to send emails to users, you can send the same using the below API, but before that, you have to do the below configuration setup, please try this and let us know if you face any difficulties. |
Beta Was this translation helpful? Give feedback.
@ManojNathIC If you have to send emails to users, you can send the same using the below API, but before that, you have to do the below configuration setup,
https://lern.sunbird.org/use/developer-guide/user-and-org-service/configuration/email-notification-configuration
curl --location '{{host}}/api/user/v1/notification/email'
--header 'Accept: application/json'
--header 'Content-Type: application/json'
--header 'Authorization: {{kong_api_key}}'
--data-raw '{
"request": {
"mode": "email",
"body": "",
"fromEmail": "",
"emailTemplateType": "",
"subject": "",
"recipientUserIds": [
"2b9651e9-c57b-44d0-8da0-23f03ded296f"
]
}
}'
please try this and let us know if you face any difficulties.