Email Previews API

for owner and author

GET /api/v1/preview_emails.html

Parameters

Name Description
mailer name of mailer
mailer_action mailer action

Request

Headers

Accept: application/json
X-Api-Token: a865h_myHNq14ssbQ2bvdB3ybwR3WsNMKQ
X-Api-Email: user-144@example.com

Route

GET /api/v1/preview_emails.html?mailer=student&mailer_action=purchase_notification

Query Parameters

mailer: student
mailer_action: purchase_notification

cURL

curl "http://localhost:3000/api/v1/preview_emails.html?mailer=student&mailer_action=purchase_notification" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: a865h_myHNq14ssbQ2bvdB3ybwR3WsNMKQ" \
	-H "X-Api-Email: user-144@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: text/html; charset=utf-8
Content-Length: 13392

Status

200 OK

Body

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Email template: email_header
Description: The email header used across all templates
 --><html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta name="viewport" content="width=device-width">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
/* -------------------------------------
Email template: email_styles
Description: The CSS used across all email templates.
------------------------------------- */


/* -------------------------------------
GLOBAL
------------------------------------- */
.rounded-gravatar {
  border-radius: 30px;
  margin-top: -5px;
}

.aligned-user {
  position:relative;
  clear:both;
}

.condensed-users {
  margin-left:120px;
  margin-right:120px
}

.clear-elements {
  clear: both;
}

.margin-left-10 {
  margin-left: 10px;
}

img {
  max-width: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
}

.table-wrapper {
  width: 700px;
  margin: auto;
  margin-top: 50px;
  box-shadow: 0 8px 20px #e3e7ea !important;
  -webkit-box-shadow: 0 8px 20px #e3e7ea !important;
  -moz-box-shadow: 0 8px 20px #e3e7ea !important;
  border-radius: 7px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
}

/* -------------------------------------
ELEMENTS
------------------------------------- */
p a {
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  color: #09a59a;
}

.btn-primary {
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: #FFF !important;
  background-color: #09a59a;
  border: solid #09a59a;
  line-height: 2;
  max-width: 100%;
  font-size: 14px;
  padding: 8px 40px 8px 40px;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  border-radius: 30px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* -------------------------------------
BODY
------------------------------------- */
table.body-wrap {
  width: 100%;
  padding: 30px 55px;
  background: #f6f6f6;
  margin: 0;
  font-size: 100%;
  line-height: 1.8;
  font-size: 15px;
}

.container {
  display: block !important;
  margin: 0 auto !important; /* makes it centered */
  clear: both !important;
}

/* -------------------------------------
HEADER
------------------------------------- */
.header {
  background-repeat: no-repeat;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  height: 80px;
  background: #2b3636;
  background-size: 300px;
  background-position: 100%;
  background-repeat: no-repeat;
  line-height: 55px;
  padding-top: 40px;
  text-align: center;
  color: #fff;
}

.header img {
  border-radius: 50%;
  padding: 5px;
}

.header-title {
  background: #2b3636;
  color: #fff;
  padding: 0px 60px 40px;
  text-align: center;
  
  margin-bottom: 40px;
}

.header-school-title {
  font-weight: bold;
}

.header-title h1, .header-title h1 a {
  font-size: 28px;
  line-height: 40px;
  padding-top: 0px;
  margin-bottom: 10px;
  font-weight: 400;
  color: #fff;
}

.content .header-title h1:first-child {
  padding-top: 0px;
}

.header-title p, .header-title p a {
  color: #fff;
  opacity: 0.8;
}

.header-margin-overide {
  margin-top: -40px;
}

/* -------------------------------------
CONTENT
------------------------------------- */

.content {
  margin: 0 auto !important; /* makes it centered */
  clear: both !important;
  background: #fff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding-bottom: 40px;
}

.content p, .content h1, .content h2, .content table, .content hr {
  padding-left: 40px;
  padding-right: 40px;
}

.content p:first-child, .content h1 {
  padding-top: 40px;
}

.content p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.condensed-width {
  max-width: 510px;
  margin: auto;
}

/* -------------------------------------
FOOTER
------------------------------------- */
.footer {
  padding-top: 30px;
  padding-bottom: 55px;
  width: 100%;
  clear: both !important;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: #666;
}

.footer a {
  color: #999;
}

.footer .social-icons {
  padding-top: 5px;
}


/* -------------------------------------
INVOICE RECEIPT
------------------------------------- */

h1.price-jumbo {
  text-align: center;
  font-weight: 200;
  font-size: 40px;
  padding-top: 10px;
}

.data-table {
  width: 550px;
  margin:auto;
  margin-bottom: 30px;
}

.data-table td {
  color: #a0a5ad;
  letter-spacing: 0.6px;
  font-size: 15px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px dashed #B5C2D3;
}

.data-table .total td, .data-table .total td.text-right {
  background: #f7f7f7;
  border: 0;
  color: #4f5c63;
  font-weight: bold;
}

.data-table td a {
  color: #09a59a;
}

.data-table td.text-right {
  color: #4f5c63;
}

/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
a {
  color: #09a59a;
  word-wrap: break-word;
}

h1, h2, h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  line-height: 1.1;
  margin-bottom: 15px;
  color: #47505E;
  margin: 0px 0 10px;
  line-height: 1.2;
  font-weight: 200;
}

.bold {
  font-weight: bold;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.left {
  float: left;
}

.right {
  float: right;
}

.small {
  font-size: 80%;
  line-height: 250%;
  vertical-align: middle;
}

.margin-none {
  margin: 0 !important;
}

.padding-none {
  padding: 0 !important;
}

h1 {
  font-size: 28px;
  line-height: 45px;
  font-weight: bold;
  margin-bottom: 30px;
}

h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

p, ul, ol {
  font-weight: normal;
  padding: 0;
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 1.3em;
  font-size: 15px;
  color: #47505E;
}

p:first-child {
  margin-top: 0px;
}

ul li, ol li {
  margin-left: 50px;
  list-style-position: inside;
}

hr {
  border-top-width: 0;
}

/* Unsubscribe Link */
a.unsubscribe-link {
  font-size: 12px;
  margin-top: 50px;
  display: block;
  text-align: center;
  text-decoration: underline;
}

/* -------------------------------------
TAX FORMS
------------------------------------- */
.tax-form-box {
  border: solid;
  border-width: 2px;
  border-color: #808080;
  border-radius: 10px;
  margin-left: 40px;
  margin-right: 40px;
  padding-top: 20px;
  height: 45px;
  text-align: center;
  color: #44443f;
}

/* -------------------------------------
LEGACY STUFF
These are no longer needed, but will save old customized templates from breaking
------------------------------------- */
.content h1.headline:first-child, .content h2.headline:first-child {
  padding-top: 40px;
}

.content h2.subline {
  font-weight: 300;
  font-size: 20px;
}

.invoice {
  margin: 20px auto;
  text-align: left;
  width: 80%;
}

.invoice td {
  padding: 15px 10px;
  font-size: 110%;
  line-height: 125%;
}

.invoice .invoice-details {
  font-size: 19px;
}

.invoice .invoice-items {
  width: 100%;
}

.invoice .invoice-items td {
  border-top: #eee 1px solid;
}

.invoice .invoice-items .total td {
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  font-weight: 700;
}

.alignright {
  text-align: right;
}

.personal-details {
  margin: 0px auto;
  text-align: left;
  width: 80%;
}

.personal-details td {
  padding: 15px 10px;
  font-size: 100%;
  line-height: 125%;
}

.personal-details .detail-items {
  width: 100%;
}

.personal-details .detail-items tr:first-child td {
  border-top: #eee 1px solid;
}

.personal-details .detail-items td {
  border-bottom: #eee 1px solid;
}

.personal-details .detail-items .stripe {
  background: #fcfcfc;
}

.personal-details .detail-items .alignleft {
  font-weight: bold;
}

.personal-details .detail-items .alignright {
  border-left: 1px solid #eee;
  padding-left: 20px;
}

</style>


<style data-roadie-ignore>
/* -------------------------------------
RESPONSIVENESS
!importants in here are necessary since email clients
don't automatically override these
------------------------------------- */
@media only screen and (max-device-width: 700px) {
  .table-wrapper {
    width: 100% !important;
    margin-top: 0px !important;
    border-radius: 0px !important;
  }

  .header {
    border-radius: 0px !important;
  }

  .header-title {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .header-title h1 {
    font-size: 25px !important;
  }

  .data-table {
    width: 100% !important;
    margin: 0 !important;
  }
}
</style>

  </head>
  <body>
    <table style="background: #F5F6F7;" width="100%" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <!-- body -->
          <table cellpadding="0" cellspacing="0" class="table-wrapper" style="box-shadow: 0 8px 20px #e3e7ea !important; -webkit-box-shadow: 0 8px 20px #e3e7ea !important; -moz-box-shadow: 0 8px 20px #e3e7ea !important;">
            <tr>
              <!-- Brand Header -->
                <td class="container header">
                  
                    <div class="header-school-title">School 70</div>
                  
               </td>
            </tr>

  <tr>
    <td class="content">
      <!--
Email template: student/purchase_notification
Description: This email is sent to a student when they enroll in a course.
 -->

<!-- Email Title -->
<div class="header-title">
  <h1>Thanks for enrolling in Example Course</h1>
</div>

<!-- Content -->
<p class="text-center"><a href="/courses/1" class="btn-primary">Access course</a></p>

<p class="text-center">This course can be accessed at any time by going to<br><a href="http://school.worksonmy.computer?utm_campaign=purchase_notification&amp;utm_medium=email&amp;utm_source=student_mailer">http://school.worksonmy.computer</a></p>

<br><hr>
<br>


<h1 class="price-jumbo">£6 GBP</h1>

<p class="text-center">Questions about this payment? <a href="http://sso.worksonmy.computer/secure/71/current_user/contact?utm_campaign=purchase_notification&amp;utm_medium=email&amp;utm_source=student_mailer">Contact School 70</a></p>

<table class="data-table" cellpadding="0" cellspacing="0">
  <tr>
    <td width="50%">Receipt Number</td>
    <td class="text-right">0 </td>
  </tr>
  <tr>
    <td width="50%">Product ID</td>
    <td class="text-right">1</td>
  </tr>
  <tr>
    <td width="50%">Product Name</td>
    <td class="text-right">Example Course</td>
  </tr>
  <tr>
    <td width="50%">Purchase Date</td>
    <td class="text-right">2019-10-31 UTC</td>
  </tr>
  <tr>
    <td width="50%">Purchaser</td>
    <td class="text-right">Chris McCustomer<br><a href="mailto:customer@email.com">customer@email.com</a> </td>
  </tr>
  
    <tr>
      <td width="50%">Purchaser VAT ID</td>
      <td class="text-right">Student VAT ID</td>
    </tr>
  
  <tr>
    <td width="50%">Vendor</td>
    <td class="text-right">School 70<br><a href="http://school.worksonmy.computer?utm_campaign=purchase_notification&amp;utm_medium=email&amp;utm_source=student_mailer">http://school.worksonmy.computer</a> </td>
  </tr>
  
    <tr>
      <td width="50%">Vendor VAT ID</td>
      <td class="text-right">EU372005114</td>
    </tr>
  
  <tr>
    <td width="50%">List Price</td>
    <td class="text-right">£10 GBP</td>
  </tr>
  
    <tr>
      <td width="50%">Discount (EXAMPLE_CODE)</td>
      <td class="text-right">£5</td>
    </tr>
  
  
  <tr class="total">
    <td width="50%">Total</td>
    <td class="text-right">£6 GBP</td>
  </tr>
</table>


<!-- Auto-generated JSON-ld compliant JSON for showing action buttons in emails -->
<script type="application/ld+json">{"@context":"http://schema.org","@type":"Order","orderStatus":"http://schema.org/OrderDelivered","orderNumber":"0","priceCurrency":"GBP","price":"0.00","merchant":{"@type":"Organization","name":"School 70"},"acceptedOffer":{"@type":"Offer","itemOffered":{"@type":"Product","name":"Example Course"},"price":"0.00","priceCurrency":"GBP","eligibleQuantity":{"@type":"QuantitativeValue","value":"1"}},"url":"/courses/1","potentialAction":{"@type":"ViewAction","url":"/courses/1"}}</script>

    </td>
  </tr>
</table>
<table width="100%">
  <tr>
    <td>
      <center>
        <a data-skip-click="true" href="http://school.worksonmy.computer/mailkick/subscriptions/BAhbCVsGSSIXY3VzdG9tZXJAZW1haWwuY29tBjoGRVRpBkkiCVVzZXIGOwBGSSIOc2Nob29sXzcxBjsAVA==--f69360a51c27de4e7950afcbc371c390c0dbce8a/unsubscribe" class="unsubscribe-link">Unsubscribe from Marketing Emails</a>

      </center>
    </td>
  </tr>
        </table>
      <!-- /body -->
      <!-- footer -->
      <div class="footer">
        <p>© School 70</p>
        
              <p>Teachable, Inc.<br>
    16 W 22nd St<br>
    Floor 6<br>
    New York, NY USA 10010<br></p>

        
      </div>
      <br>
    </td>
  </tr>
</table>


<!-- the </table> close is student_email_footer -->
</body>
</html>

Request

Headers

Accept: application/json
X-Api-Token: a865h_myHNq14ssbQ2bvdB3ybwR3WsNMKQ
X-Api-Email: user-144@example.com

Route

GET /api/v1/preview_emails.html?mailer=student&mailer_action=purchase_notification

Query Parameters

mailer: student
mailer_action: purchase_notification

cURL

curl "http://localhost:3000/api/v1/preview_emails.html?mailer=student&mailer_action=purchase_notification" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: a865h_myHNq14ssbQ2bvdB3ybwR3WsNMKQ" \
	-H "X-Api-Email: user-144@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: text/html; charset=utf-8
Content-Length: 13392

Status

200 OK

Body

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Email template: email_header
Description: The email header used across all templates
 --><html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta name="viewport" content="width=device-width">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
/* -------------------------------------
Email template: email_styles
Description: The CSS used across all email templates.
------------------------------------- */


/* -------------------------------------
GLOBAL
------------------------------------- */
.rounded-gravatar {
  border-radius: 30px;
  margin-top: -5px;
}

.aligned-user {
  position:relative;
  clear:both;
}

.condensed-users {
  margin-left:120px;
  margin-right:120px
}

.clear-elements {
  clear: both;
}

.margin-left-10 {
  margin-left: 10px;
}

img {
  max-width: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
}

.table-wrapper {
  width: 700px;
  margin: auto;
  margin-top: 50px;
  box-shadow: 0 8px 20px #e3e7ea !important;
  -webkit-box-shadow: 0 8px 20px #e3e7ea !important;
  -moz-box-shadow: 0 8px 20px #e3e7ea !important;
  border-radius: 7px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
}

/* -------------------------------------
ELEMENTS
------------------------------------- */
p a {
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  color: #09a59a;
}

.btn-primary {
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: #FFF !important;
  background-color: #09a59a;
  border: solid #09a59a;
  line-height: 2;
  max-width: 100%;
  font-size: 14px;
  padding: 8px 40px 8px 40px;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  border-radius: 30px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* -------------------------------------
BODY
------------------------------------- */
table.body-wrap {
  width: 100%;
  padding: 30px 55px;
  background: #f6f6f6;
  margin: 0;
  font-size: 100%;
  line-height: 1.8;
  font-size: 15px;
}

.container {
  display: block !important;
  margin: 0 auto !important; /* makes it centered */
  clear: both !important;
}

/* -------------------------------------
HEADER
------------------------------------- */
.header {
  background-repeat: no-repeat;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  height: 80px;
  background: #2b3636;
  background-size: 300px;
  background-position: 100%;
  background-repeat: no-repeat;
  line-height: 55px;
  padding-top: 40px;
  text-align: center;
  color: #fff;
}

.header img {
  border-radius: 50%;
  padding: 5px;
}

.header-title {
  background: #2b3636;
  color: #fff;
  padding: 0px 60px 40px;
  text-align: center;
  
  margin-bottom: 40px;
}

.header-school-title {
  font-weight: bold;
}

.header-title h1, .header-title h1 a {
  font-size: 28px;
  line-height: 40px;
  padding-top: 0px;
  margin-bottom: 10px;
  font-weight: 400;
  color: #fff;
}

.content .header-title h1:first-child {
  padding-top: 0px;
}

.header-title p, .header-title p a {
  color: #fff;
  opacity: 0.8;
}

.header-margin-overide {
  margin-top: -40px;
}

/* -------------------------------------
CONTENT
------------------------------------- */

.content {
  margin: 0 auto !important; /* makes it centered */
  clear: both !important;
  background: #fff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding-bottom: 40px;
}

.content p, .content h1, .content h2, .content table, .content hr {
  padding-left: 40px;
  padding-right: 40px;
}

.content p:first-child, .content h1 {
  padding-top: 40px;
}

.content p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.condensed-width {
  max-width: 510px;
  margin: auto;
}

/* -------------------------------------
FOOTER
------------------------------------- */
.footer {
  padding-top: 30px;
  padding-bottom: 55px;
  width: 100%;
  clear: both !important;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: #666;
}

.footer a {
  color: #999;
}

.footer .social-icons {
  padding-top: 5px;
}


/* -------------------------------------
INVOICE RECEIPT
------------------------------------- */

h1.price-jumbo {
  text-align: center;
  font-weight: 200;
  font-size: 40px;
  padding-top: 10px;
}

.data-table {
  width: 550px;
  margin:auto;
  margin-bottom: 30px;
}

.data-table td {
  color: #a0a5ad;
  letter-spacing: 0.6px;
  font-size: 15px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px dashed #B5C2D3;
}

.data-table .total td, .data-table .total td.text-right {
  background: #f7f7f7;
  border: 0;
  color: #4f5c63;
  font-weight: bold;
}

.data-table td a {
  color: #09a59a;
}

.data-table td.text-right {
  color: #4f5c63;
}

/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
a {
  color: #09a59a;
  word-wrap: break-word;
}

h1, h2, h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  line-height: 1.1;
  margin-bottom: 15px;
  color: #47505E;
  margin: 0px 0 10px;
  line-height: 1.2;
  font-weight: 200;
}

.bold {
  font-weight: bold;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.left {
  float: left;
}

.right {
  float: right;
}

.small {
  font-size: 80%;
  line-height: 250%;
  vertical-align: middle;
}

.margin-none {
  margin: 0 !important;
}

.padding-none {
  padding: 0 !important;
}

h1 {
  font-size: 28px;
  line-height: 45px;
  font-weight: bold;
  margin-bottom: 30px;
}

h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

p, ul, ol {
  font-weight: normal;
  padding: 0;
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 1.3em;
  font-size: 15px;
  color: #47505E;
}

p:first-child {
  margin-top: 0px;
}

ul li, ol li {
  margin-left: 50px;
  list-style-position: inside;
}

hr {
  border-top-width: 0;
}

/* Unsubscribe Link */
a.unsubscribe-link {
  font-size: 12px;
  margin-top: 50px;
  display: block;
  text-align: center;
  text-decoration: underline;
}

/* -------------------------------------
TAX FORMS
------------------------------------- */
.tax-form-box {
  border: solid;
  border-width: 2px;
  border-color: #808080;
  border-radius: 10px;
  margin-left: 40px;
  margin-right: 40px;
  padding-top: 20px;
  height: 45px;
  text-align: center;
  color: #44443f;
}

/* -------------------------------------
LEGACY STUFF
These are no longer needed, but will save old customized templates from breaking
------------------------------------- */
.content h1.headline:first-child, .content h2.headline:first-child {
  padding-top: 40px;
}

.content h2.subline {
  font-weight: 300;
  font-size: 20px;
}

.invoice {
  margin: 20px auto;
  text-align: left;
  width: 80%;
}

.invoice td {
  padding: 15px 10px;
  font-size: 110%;
  line-height: 125%;
}

.invoice .invoice-details {
  font-size: 19px;
}

.invoice .invoice-items {
  width: 100%;
}

.invoice .invoice-items td {
  border-top: #eee 1px solid;
}

.invoice .invoice-items .total td {
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  font-weight: 700;
}

.alignright {
  text-align: right;
}

.personal-details {
  margin: 0px auto;
  text-align: left;
  width: 80%;
}

.personal-details td {
  padding: 15px 10px;
  font-size: 100%;
  line-height: 125%;
}

.personal-details .detail-items {
  width: 100%;
}

.personal-details .detail-items tr:first-child td {
  border-top: #eee 1px solid;
}

.personal-details .detail-items td {
  border-bottom: #eee 1px solid;
}

.personal-details .detail-items .stripe {
  background: #fcfcfc;
}

.personal-details .detail-items .alignleft {
  font-weight: bold;
}

.personal-details .detail-items .alignright {
  border-left: 1px solid #eee;
  padding-left: 20px;
}

</style>


<style data-roadie-ignore>
/* -------------------------------------
RESPONSIVENESS
!importants in here are necessary since email clients
don't automatically override these
------------------------------------- */
@media only screen and (max-device-width: 700px) {
  .table-wrapper {
    width: 100% !important;
    margin-top: 0px !important;
    border-radius: 0px !important;
  }

  .header {
    border-radius: 0px !important;
  }

  .header-title {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .header-title h1 {
    font-size: 25px !important;
  }

  .data-table {
    width: 100% !important;
    margin: 0 !important;
  }
}
</style>

  </head>
  <body>
    <table style="background: #F5F6F7;" width="100%" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <!-- body -->
          <table cellpadding="0" cellspacing="0" class="table-wrapper" style="box-shadow: 0 8px 20px #e3e7ea !important; -webkit-box-shadow: 0 8px 20px #e3e7ea !important; -moz-box-shadow: 0 8px 20px #e3e7ea !important;">
            <tr>
              <!-- Brand Header -->
                <td class="container header">
                  
                    <div class="header-school-title">School 70</div>
                  
               </td>
            </tr>

  <tr>
    <td class="content">
      <!--
Email template: student/purchase_notification
Description: This email is sent to a student when they enroll in a course.
 -->

<!-- Email Title -->
<div class="header-title">
  <h1>Thanks for enrolling in Example Course</h1>
</div>

<!-- Content -->
<p class="text-center"><a href="/courses/1" class="btn-primary">Access course</a></p>

<p class="text-center">This course can be accessed at any time by going to<br><a href="http://school.worksonmy.computer?utm_campaign=purchase_notification&amp;utm_medium=email&amp;utm_source=student_mailer">http://school.worksonmy.computer</a></p>

<br><hr>
<br>


<h1 class="price-jumbo">£6 GBP</h1>

<p class="text-center">Questions about this payment? <a href="http://sso.worksonmy.computer/secure/71/current_user/contact?utm_campaign=purchase_notification&amp;utm_medium=email&amp;utm_source=student_mailer">Contact School 70</a></p>

<table class="data-table" cellpadding="0" cellspacing="0">
  <tr>
    <td width="50%">Receipt Number</td>
    <td class="text-right">0 </td>
  </tr>
  <tr>
    <td width="50%">Product ID</td>
    <td class="text-right">1</td>
  </tr>
  <tr>
    <td width="50%">Product Name</td>
    <td class="text-right">Example Course</td>
  </tr>
  <tr>
    <td width="50%">Purchase Date</td>
    <td class="text-right">2019-10-31 UTC</td>
  </tr>
  <tr>
    <td width="50%">Purchaser</td>
    <td class="text-right">Chris McCustomer<br><a href="mailto:customer@email.com">customer@email.com</a> </td>
  </tr>
  
    <tr>
      <td width="50%">Purchaser VAT ID</td>
      <td class="text-right">Student VAT ID</td>
    </tr>
  
  <tr>
    <td width="50%">Vendor</td>
    <td class="text-right">School 70<br><a href="http://school.worksonmy.computer?utm_campaign=purchase_notification&amp;utm_medium=email&amp;utm_source=student_mailer">http://school.worksonmy.computer</a> </td>
  </tr>
  
    <tr>
      <td width="50%">Vendor VAT ID</td>
      <td class="text-right">EU372005114</td>
    </tr>
  
  <tr>
    <td width="50%">List Price</td>
    <td class="text-right">£10 GBP</td>
  </tr>
  
    <tr>
      <td width="50%">Discount (EXAMPLE_CODE)</td>
      <td class="text-right">£5</td>
    </tr>
  
  
  <tr class="total">
    <td width="50%">Total</td>
    <td class="text-right">£6 GBP</td>
  </tr>
</table>


<!-- Auto-generated JSON-ld compliant JSON for showing action buttons in emails -->
<script type="application/ld+json">{"@context":"http://schema.org","@type":"Order","orderStatus":"http://schema.org/OrderDelivered","orderNumber":"0","priceCurrency":"GBP","price":"0.00","merchant":{"@type":"Organization","name":"School 70"},"acceptedOffer":{"@type":"Offer","itemOffered":{"@type":"Product","name":"Example Course"},"price":"0.00","priceCurrency":"GBP","eligibleQuantity":{"@type":"QuantitativeValue","value":"1"}},"url":"/courses/1","potentialAction":{"@type":"ViewAction","url":"/courses/1"}}</script>

    </td>
  </tr>
</table>
<table width="100%">
  <tr>
    <td>
      <center>
        <a data-skip-click="true" href="http://school.worksonmy.computer/mailkick/subscriptions/BAhbCVsGSSIXY3VzdG9tZXJAZW1haWwuY29tBjoGRVRpBkkiCVVzZXIGOwBGSSIOc2Nob29sXzcxBjsAVA==--f69360a51c27de4e7950afcbc371c390c0dbce8a/unsubscribe" class="unsubscribe-link">Unsubscribe from Marketing Emails</a>

      </center>
    </td>
  </tr>
        </table>
      <!-- /body -->
      <!-- footer -->
      <div class="footer">
        <p>© School 70</p>
        
              <p>Teachable, Inc.<br>
    16 W 22nd St<br>
    Floor 6<br>
    New York, NY USA 10010<br></p>

        
      </div>
      <br>
    </td>
  </tr>
</table>


<!-- the </table> close is student_email_footer -->
</body>
</html>