Sign inSign up

jesusfcr/mailer

By jesusfcr

•Updated about 8 years ago

Image to build emails from templates

Image
2

50K+

jesusfcr/mailer repository overview

= Mailer

This simple utility builds a newsletter with the selected deals using templates.

== Build

docker build -t mailer .

== Execute

docker run --restart unless-stopped -d -p 5000:5000 --add-host=mysql:172.26.10.214 -e MYSQL_USR= -e MYSQL_PWD= mailer:latest

== Keep server up-to-date

To keep the server up-to-date use the following container

docker run -d --restart unless-stopped --name watchtower -v /var/run/docker.sock:/var/run/docker.sock v2tec/watchtower --cleanup --debug

== Usage

Parameters:

  • brand: One of those values L, G, O or N.
  • deals: Pipe separated skus
  • store: section code (p.e. 2, 3 ...)
  • min: true by default, you can disable with 'false'

http://localhost:5000/template/gp.html?brand=G&deals=CASPA0000083386|CASPA0000089576|CASPA0000114923&store=2&brand=L&min=false⁠

http://localhost:5000/template/lb.html?deals=428305|428377|428311|428313|426573&store=tra&brand=L⁠

Tag summary

Content type

Image

Digest

Size

365.9 MB

Last updated

about 8 years ago

docker pull jesusfcr/mailer