> For the complete documentation index, see [llms.txt](https://lern.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lern.sunbird.org/use/developer-guide/user-and-org-service/data-models/cassandra/data-dictionary/email-template.md).

# Email Template

### sunbird.email\_template (PRIMARY KEY: name)

Table used to store email notification templates

<table><thead><tr><th width="160.33333333333331">Column Name</th><th width="123">Data Type</th><th width="130">Description</th><th>Sample Data</th></tr></thead><tbody><tr><td>name</td><td>text</td><td>name of the template</td><td>publishContent</td></tr><tr><td>createdby</td><td>text</td><td>Not Used</td><td></td></tr><tr><td>createdon</td><td>timestamp</td><td>Not Used</td><td></td></tr><tr><td>lastupdatedby</td><td>text</td><td>Not Used</td><td></td></tr><tr><td>lastupdatedon</td><td>timestamp</td><td>Not Used</td><td></td></tr><tr><td>template</td><td>text</td><td>email template</td><td><pre class="language-html"><code class="lang-html">&#x3C;!doctype html>&#x3C;html> &#x3C;head> &#x3C;meta name="viewport" content="width=device-width"> &#x3C;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> &#x3C;title>&#x3C;/title> &#x3C;style>/* ------------------------------------- INLINED WITH htmlemail.io/inline ------------------------------------- */ /* ------------------------------------- RESPONSIVE AND MOBILE FRIENDLY STYLES ------------------------------------- */ @media only screen and (max-width: 620px){table[class=body] h1{font-size: 28px !important; margin-bottom: 10px !important;}table[class=body] p, table[class=body] ul, table[class=body] ol, table[class=body] td, table[class=body] span, table[class=body] a{font-size: 16px !important;}table[class=body] .wrapper, table[class=body] .article{padding: 10px !important;}table[class=body] .content{padding: 0 !important;}table[class=body] .container{padding: 0 !important; width: 100% !important;}table[class=body] .main{border-left-width: 0 !important; border-radius: 0 !important; border-right-width: 0 !important;}table[class=body] .btn table{width: 100% !important;}table[class=body] .btn a{width: 100% !important;}table[class=body] .img-responsive{height: auto !important; max-width: 100% !important; width: auto !important;}}/* ------------------------------------- PRESERVE THESE STYLES IN THE HEAD ------------------------------------- */ @media all{.ExternalClass{width: 100%;}.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height: 100%;}.apple-link a{color: inherit !important; font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; text-decoration: none !important;}.btn-primary table td:hover{background-color: #34495e !important;}.btn-primary a:hover{background-color: #34495e !important; border-color: #34495e !important;}}&#x3C;/style> &#x3C;/head> &#x3C;body class="" style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;"> &#x3C;table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;"> &#x3C;tr> &#x3C;td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&#x26;nbsp;&#x3C;/td>&#x3C;td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;"> &#x3C;div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;"> &#x3C;span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">&#x3C;/span> &#x3C;table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;"> &#x3C;tr> &#x3C;td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;"> &#x3C;table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;"> &#x3C;tr> &#x3C;tr> &#x3C;td> #if ($orgImageUrl) &#x3C;p> &#x3C;img src="$orgImageUrl" alt="logo" align="right" width="180" height="100"> &#x3C;/p>#end &#x3C;/td>&#x3C;/tr>&#x3C;td style="font-family: sans-serif; font-size: 14px; vertical-align: top;"> #if ($name) &#x3C;p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Hi $name,&#x3C;/p>#end &#x3C;p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">$body&#x3C;/p>&#x3C;table border="0" cellpadding="0" cellspacing="0" class="btn btn-primary" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; box-sizing: border-box;"> &#x3C;tbody> &#x3C;tr> &#x3C;td align="left" style="font-family: sans-serif; font-size: 14px; vertical-align: top; padding-bottom: 15px;"> &#x3C;table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: auto;"> &#x3C;tbody> #if ($actionUrl) &#x3C;tr> &#x3C;td style="font-family: sans-serif; font-size: 14px; vertical-align: top; background-color: #3498db; border-radius: 5px; text-align: center;"> &#x3C;a href="$actionUrl" target="_blank" style="display: inline-block; color: #ffffff; background-color: #3498db; border: solid 1px #3498db; border-radius: 5px; box-sizing: border-box; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-transform: capitalize; border-color: #3498db;">#if ($actionName) &#x3C;span>$actionName&#x3C;/span> #end &#x3C;/a> &#x3C;/td>&#x3C;/tr>#end &#x3C;/tbody> &#x3C;/table> &#x3C;/td>&#x3C;/tr>&#x3C;/tbody> &#x3C;/table> &#x3C;p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 0;">Regards,&#x3C;/p>&#x3C;p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 0;">Team #if ($orgName) &#x3C;span> $orgName&#x3C;/span> #end &#x3C;/p>&#x3C;p> Note: This is an automatic alert email. Replies to this mail box will not be monitored. If you are not the intended recipient of this message, or need to communicate with the team, write to $fromEmail. &#x3C;/p>&#x3C;/td>&#x3C;/tr>&#x3C;/table> &#x3C;/td>&#x3C;/tr>&#x3C;/table> &#x3C;/div>&#x3C;/td>&#x3C;td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&#x26;nbsp;&#x3C;/td>&#x3C;/tr>&#x3C;/table> &#x3C;/body>&#x3C;/html>
</code></pre></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://lern.sunbird.org/use/developer-guide/user-and-org-service/data-models/cassandra/data-dictionary/email-template.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
