lafranceinsoumise / mosaico-standalone

Standalone server for using Mosaico template builder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Standalone Mosaico

This project aims at providing an environment for using Mosaico.

It features :

  • Email composition with Mosaico
  • Template management (create, save, edit)
  • Sending to test mailbox
  • «View in browser» feature
  • Merge tags replacement

Install and run

You need NodeJS >= 10, Imagemagick and a local Redis server to make it run. The local Redis server can be launch using the docker-compose file provided at the root of this project.

git clone git@github.com:guilro/mosaico-standalone.git
cd mosaico-standalone
npm install
cp config.js.dist config.js # edit this file
npm start

Configuration and usage

Configure SMTP, sending address and users in config.json. Each user has private access to its own emails.

Place custom templates in templates/custom. They will appear in the creation form.

Merge tag

You can send a GET or POST requests to the email URL /emails/[uuid].html with string parameters encoded in the body. You will get the email HTML with merge tags replaced.

To get the email URL by clicking on View and copy the email from the browser.

You can use this feature from other services to use Mosaico as an email templater !

Changelog

  • 0.3.0 :
    • update deps
  • 0.2.0 :
    • security fixes (XSS injection)
    • allow all methods for merge tags
    • add pagination, duplicate and delete feature
    • BREAKING: require node>=7.6.0
  • 0.1.0 : Mosaico version 0.15.0

About

Standalone server for using Mosaico template builder.

License:GNU General Public License v3.0


Languages

Language:JavaScript 49.9%Language:Pug 20.5%Language:Less 18.2%Language:HTML 11.3%