Tenant Wise Email and SMS Notification Senders in WSO2 Identity Server

source: https://rightclickmedia.co.za/what-are-sms-and-email-campaigns/
* streamName - The name of the event stream where events are picked for notification sending* version - The version of the event stream* type - Type of the notification sender (email/sms)
Email - EmailPublisher
SMS - SMSPublisher
/api/server/v1/notification-senders/email/{email-sender-name}
/api/server/v1/notification-senders/sms/{sms-sender-name}
 name
smtpServerHost
smtpPort
fromAddress
userName
password
"properties": [
{
"key": "maxThread",
"value": "200"
},
{
"key": "mail.smtp.starttls.enable",
"value": true
}
]
<configuration provider=”D7SMS”> 
<body>
{"content": {{body}}, "from": $sender,"to": {{mobile}}}
</body>
</configuration>
<configuration provider=”Bulksms”> 
<body>
[{ “from”: $sender, “to”: {{mobile}}, “body”: {{body}}, “routingGroup”: $body.routingGroup}]
</body>
</configuration>
$sender will be replaced by the input value of the “sender” attribute.$body.routingGroup will be replaced by the input value of the property defined with key - “body.routingGroup”.
name
provider
providerURL
key
secret
sender
{
"provider": "D7SMS",
"providerURL": "",
"properties": [
{
"key": "body",
"value": "{"content": {{body}}, "from": "0771232345", "to": {{mobile}} }"
}

]
}
<configuration provider=”Bulksms”> 
<body>
[{ “from”: $sender, “to”: {{mobile}}, “body”: {{body}},
“routingGroup”: $body.routingGroup}]
</body>
</configuration>
{
"provider": "Bulksms",
"providerURL": "
https://webhook.site/9b79bebd-445a-4dec-ad5e-622b856fa184",
"key": "123",
"secret": "1234",
"sender": "073923902",
"properties": [
{
"key": "body.routingGroup",
"value": "ECONOMY"
}

]
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store