SMS & Email
Steps to configure SMS & Email
Overview
This guide explains how to enable and configure Email and SMS notifications for CCRS.
SMS Service
The notification service is a means of communicating important information and updates to users regarding their various transactions on the CCRS application. To enable this, there are specific notification parameters that are system-configured for different steps in the application workflow. These configurations can be modified or reconfigured as per the State Implementation requirements.
egov-notification-sms and egov-notification-mail services are responsible for notifying users through SMS and email, respectively.
SMS templates are stored as localisation messages in both English and the local language.
These templates use placeholders, which the service replaces with actual data at runtime.
The end user can add or modify localisation messages based on their specific requirements.
Email Service
egov-notification-mail listens to the egov.core.notification.email Kafka topic.
It reads the message and sends email notifications using the SMTP protocol.
Once the email content is generated, it is localised via the egov-localisation service before being sent.
Steps
Enable notifications in the environment.yaml
Configure the SMS provider details in the env.yaml file: env.yaml (Line 75)
The sms-provider-url is configured for sms country. Based on your sms provider, change the configurations below:
sms-provider-url: "http://api.smscountry.com/SMSCwebservice_bulk.aspx"
sms.provider.url: "http://api.smscountry.com/SMSCwebservice_bulk.aspx"
sms.provider.class: "Generic"
sms.provider.contentType: "application/x-www-form-urlencoded"
sms-config-map: "{'User':'$username', 'passwd': '$password', 'sid':'$senderid', 'mobilenumber':'$mobileno', 'message':'$message', 'mtype':'N', 'DR':'N', 'smsservicetype':'singlemsg'}"
sms-gateway-to-use: "SMS_COUNTRY"
sms-sender: "SMSCOUNTRY"
sms-sender-requesttype: "GET"
sms-custom-config: "true"
sms-extra-req-params: "mtype=N&DR=Y"
sms-sender-req-param-name: "sid"
sms-sender-username-req-param-name: "User"
sms-sender-password-req-param-name: "passwd"
sms-destination-mobile-req-param-name: "mobilenumber"
sms-message-req-param-name: "message"
sms-error-codes: "401,403,404,405,406,407,408,409,410,411,412,413,414"
The SMS username and password should be securely stored in the env-secrets.yaml file: env-secrets.yaml (Line 22)
Enable IMAP and POP access
Go to: https://mail.google.com/
Click Settings (⚙️) → See all settings
Navigate to the "Forwarding and POP/IMAP" tab
Enable:
IMAP Access: Enable IMAP
(Optional) POP Access: Enable POP for all mail
Click Save Changes.
Update SMS Credentials
Update the mailsenderusername and mail.senderpassword in the env-secrets.yaml file: env-secrets.yaml (Line 18)
Last updated
Was this helpful?