A free and open-source block-based email template builder.
TypeScript amazonsesdeveloper-toolsemailemail-editoremail-marketingemail-templateemail-template-builderemailapiemailjshtml-email-editorno-codenocode-email-editoropen-source-email-buildersendgridtransactional-emailswysiwyg-email-editorwysiwyg-html-editor
Code example (#68)
cohitre15cd8da9ac3b
diff --git a/README.md b/README.mdindex b8f9429..93f920c 100644--- a/README.md+++ b/README.md@@ -155,7 +155,32 @@ Coming soonWe'll use [Waypoint](https://www.usewaypoint.com) for this example, however, you can use any email API like Amazon SES, SendGrid, or MailGun.-<br>+```javascript+import axios from 'axios';++import { renderHtmlDocument } from '@usewaypoint/email-builder';++// Replace this with the JSON for your Reader document+const CONFIGURATION: TReaderDocument = {}++await axios({+ method: 'post',+ url: 'https://live.waypointapi.com/v1/email_messages',+ headers: {+ 'Content-Type': 'application/json',+ },+ auth: {+ username: API_KEY_USERNAME,+ password: API_KEY_PASSWORD,+ },++ data: {+ to: '[email protected]',+ subject: 'Hello',+ bodyHtml: renderHtmlDocument(CONFIGURATION, 'root'),+ },+});+```---