Skip to content

Mail templates for vpsAdmin used at vpsFree.cz

Notifications You must be signed in to change notification settings

Kerrycek/vpsadmin-mail-templates

Repository files navigation

vpsFree.cz specific mail templates for vpsAdmin

This repository contains mail templates for vpsAdmin used at vpsFree.cz. After editing, the templates must be installed (sent to the API).

Requirements

  • make
  • Ruby >= 2.0
  • gems specified in Gemfile

Usage

Every template is in a directory. The directory name must match with the template name. The directory must contain file meta.rb and may contain files plain.erb for plain text version and html.erb for HTML version.

meta.rb format

It is a standard Ruby file. There is one predefined method template. It has no arguments and accepts a block. The block is executed in an environment with methods (options) label, from, reply_to, return_path and subject. All these methods accept one argument. They are used to describe the template.

Required options are label, from, subject.

For example:

template do
  label        'Some Label'
  from         '[email protected]'
  reply_to     '[email protected]'
  return_path  '[email protected]'
  subject      '[vpsFree.cz] Some Subject'
end

Installation

Installation is done by make. Optional variables:

  • API - the URL of the API to upload templates to
  • VERSION - version of the API to use
  • USERNAME
  • PASSWORD

The user name and password is prompted on stdin if it is not set.

For example:

$ make API=https://api.vpsfree.cz USERNAME=admin

About

Mail templates for vpsAdmin used at vpsFree.cz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published