0.2.0 • Published 5 years ago

compose-email v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Compose

Create beautiful emails with an easy template language. Compose is a complete framework, and also allows you to send test emails.

Disclamer

Compose is in active development and is untested, unusable.

Getting Started

npm install -g compose
yarn add --global compose

Lets create our first email

compose new welcome_email

Let's add the following

<!-- Include the header -->
<include template="header"></include>

<section>
  <column>
    <text>{{ title }}</text>
  </column>
</section>

<section>
  <column>
    <text>Column One</text>
  </column>
  <column>
    <text>Column Two</text>
  </column>
</section>

<!-- Include the footer -->
<include template="footer"></include>

Send Test

You can send a test email with compose. First of all you'll need to add email details to send them.

compose setup
compose test <email_name> <recipient>

You can also set the email details like from, subject etc.