Not receiving Email notification after getting certificate #25
Unanswered
raghupathiguduri
asked this question in
Issues
Replies: 2 comments 7 replies
-
@raghupathiguduri - Please let us know which version of Sunbird we are using. Also, please validate the below details.
|
Beta Was this translation helpful? Give feedback.
5 replies
-
@raghupathiguduri
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@maheshkumargangula @reshmi-nair We are not receiving email notification after generating the certificate. We did check the cassandra DB also for email template with name
courseCertTemp
. We don't see any event came to sendgrid also. We see other email notifcaions like joining course, etc are coming.Below is the template from cassandra
<!doctype html><html><head><meta name="viewport" content="width=device-width"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></title></head><body style=" -webkit-font-smoothing: antialiased; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;"><link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700&display=swap" rel="stylesheet"><table border="0" cellpadding="0" cellspacing="0" style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; padding: 25px;margin:0 auto;"><tr><td style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; font-size: 14px; vertical-align: top; display: block; margin: 0 auto; max-width: 602px; width: 602px; padding: 0; "><div style=" box-sizing: border-box; display: block; margin: 0 auto; max-width: 602px; width: 100%;"><table style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 20pt; width: 100%; background: #edf4f9; padding: 23.5px;"><tr><td style="font-family: 'Noto Sans','Roboto','Google Sans' sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box;"><table border="1" bordercolor="#F0E68C" bgcolor="lightyellow" cellpadding="12" cellspacing="0" style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 80pt; width: 100%; border: 1px solid #E4AF1E;"><tr><td style="padding: 18.5px 16.5px; vertical-align: middle;" valign="middle"> #if ($APEXImgUrl) #end <img src="$APEXImgUrl" alt="APEX Logo" align="left" valign="middle" style="margin:12.5px 0; max-height: 38px;height:38px; vertical-align: middle;"></td></tr><tr><td style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; font-size: 14px; vertical-align: top; padding:16px;"><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 36px; margin: 0 0 8px 0;">Dear <span style="font-weight: bold;">$name</span>,</p><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 36px; font-weight: bold; margin: 0 0 8px 0;">Congratulations!</p><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal; margin: 0 0 24px 0;">You have successfully completed the training, <strong>$TraningName</strong>. </p><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal; margin: 0 0 24px 0;">Your effort is highly appreciated!</p><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 12px; line-height: 17px; font-weight: normal; margin: 0 0 22px 0;"><i>Note: Refer instructions given below to download your certificate and digitally verify it.</i></p><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 12px; line-height: 17px; font-weight: normal; margin: 0 0 55px 0;">Regards, <br /> #if ($regardsperson) $regardsperson, <br /> #end $regards </p></td></tr><tr><td style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; font-size: 14px; line-height: 20px; padding: 20px 16px; background: #F2F2F2;" bgcolor="#F2F2F2">You can download your course certificates from the APEX portal or APEX mobile app. <p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;padding:0px;margin:0px;"><p></p><b>To download your certificates from the APEX portal:</b></p><ol style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;padding-top:0px;margin-top:0px;"><li>Use your registered User ID to log in to <a href="https://dhruva.shikshalokam.org">www.dhruva.shikshalokam.org</a></li><li>Click on the <b>Profile</b> icon.</li><li>Select <b>Profile</b> from the menu.</li><li>Scroll to the <b>Courses</b> section.</li><li>The certificate courses that you have completed have a link to download your certificate.</li><li>Click <b>Download Certificate</b>.</li><li>A PDF version of your certificate is downloaded on your laptop/desktop.</li></ol><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;padding:0px;margin:0px;"><b>To download your certificates from the APEX mobile app:</b></p><ol style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;padding-top:0px;margin-top:0px;"><li>Click on the <b>Profile</b> icon from the menu bar at the bottom of your screen.</li><li>Scroll to the <b>Courses</b> section.</li><li>The certificate courses that you have completed have a link to download your certificate.</li><li>Click <b>Download Certificate</b>.</li><li>Click on <b>Downloads</b> icon from the menu bar at the bottom of your screen.</li><li>The certificate is available as a pdf file in your downloads folder..</li></ol><b>Note:</b> If you are unable to download your certificates using the mobile app, go to <b>Google Play > APEX app</b>. Click <b>Update</b>, to upgrade to the latest app version.<p></p> <p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;margin-bottom:0px;"><b>To digitally verify your certificate:</b></p><ol style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;padding-top:0px;margin-top:0px;margin-bottom:0px;"><li>Open your downloaded certificate.</li><li>Scan the QR code on your certificate, or enter the character code below the QR code.</li><li>Your certificate is verified.</li></ol><p></p><p style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;margin-bottom:0px;"><b>To print the certificate in high resolution, select the following specifications: </b></p><ol style="font-family:'Noto Sans','Roboto','Google Sans', sans-serif; color: #333333; font-size: 14px; line-height: 20px; font-weight: normal;padding-top:0px;margin-top:0px;margin-bottom:0px;"><li>Open your downloaded certificate.</li><li>Select Print.</li><li>Select the following specifications:</li><ul><li>Paper quality: 300 GSM</li><li>Paper size: A4</li><li>Printer type: Colour Laser printer</li></ul></ol></td></tr></table></td></tr></table></div></td></tr></table></body></html>
Below is the config-map of collection-cert-generator flink job
apiVersion: v1 data: base-config: |+ kafka { broker-servers = "*************" zookeeper = "*****************" producer { max-request-size = 1572864 } } job { env = "slecosystem" enable.distributed.checkpointing = true statebackend { blob { storage { account = "****************.blob.core.windows.net" container = "flink-check-points-store" checkpointing.dir = "checkpoint" } } base.url = "wasbs://"${job.statebackend.blob.storage.container}"@"${job.statebackend.blob.storage.account}"/"${job.statebackend.blob.storage.checkpointing.dir} } } task { parallelism = 1 consumer.parallelism = 1 checkpointing.compressed = true checkpointing.interval = 60000 checkpointing.pause.between.seconds = 5000 restart-strategy.attempts = 3 restart-strategy.delay = 30000 # in milli-seconds } redis { host = *.*.*.* port = 6379 } lms-cassandra { host = "*.*.*.*" port = "9042" } neo4j { routePath = "bolt://*.*.*.*:7687" graph = "domain" } es { basePath = "*.*.*.*:9200" } schema { basePath = "https://************.blob.core.windows.net/content/schemas/local" supportedVersion = { itemset = "2.0" } } collection-certificate-generator: |+ include file("/data/flink/conf/base-config.conf") kafka { input.topic = slecosystem.generate.certificate.request output.audit.topic = slecosystem.telemetry.raw groupId = slecosystem-certificate-generator-group } task { restart-strategy.attempts = 3 # max 3 restart attempts restart-strategy.delay = 240000 # in milli-seconds # on max restarts (3) within 4 min the job will fail. consumer.parallelism = 1 parallelism = 1 } lms-cassandra { keyspace = "sunbird_courses" user_enrolments.table = "user_enrolments" course_batch.table = "course_batch" } cert_domain_url = "https://dhruva.shikshalokam.org" cert_container_name = "prod-e-credentials" cert_cloud_storage_type = "azure" cert_azure_storage_secret = "******************************************" cert_azure_storage_key = "*************" service { certreg.basePath = "http://{{internal-ip}}/certreg" learner.basePath = "http://{{internal-ip}}/learner" enc.basePath = "http://{{internal-ip}}/enc" } flink-conf: |+ jobmanager.memory.flink.size: 1024m taskmanager.memory.flink.size: 1024m taskmanager.numberOfTaskSlots: 1 parallelism.default: 1 jobmanager.execution.failover-strategy: region taskmanager.memory.network.fraction: 0.1 log4j_console_properties: | # This affects logging for both user code and Flink rootLogger.level = INFO rootLogger.appenderRef.console.ref = ConsoleAppender # Uncomment this if you want to _only_ change Flink's logging #logger.flink.name = org.apache.flink #logger.flink.level = INFO # The following lines keep the log level of common libraries/connectors on # log level INFO. The root logger does not override this. You have to manually # change the log levels here. logger.akka.name = akka logger.akka.level = ERROR logger.kafka.name= org.apache.kafka logger.kafka.level = ERROR logger.hadoop.name = org.apache.hadoop logger.hadoop.level = ERROR logger.zookeeper.name = org.apache.zookeeper logger.zookeeper.level = ERROR # Log all infos to the console appender.console.name = ConsoleAppender appender.console.type = CONSOLE appender.console.layout.type = PatternLayout appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n # Suppress the irrelevant (wrong) warnings from the Netty channel handler logger.netty.name = org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline logger.netty.level = OFF
Please help us to resolve this issue.
Beta Was this translation helpful? Give feedback.
All reactions