2017-09-27 02:13:11 +00:00
# Mailtrain
2016-04-04 12:42:36 +00:00
2017-09-27 02:03:34 +00:00
[Mailtrain ](http://mailtrain.org ) is a self hosted newsletter application built on Node.js (v7+) and MySQL (v5.5+ or MariaDB).
2017-05-16 13:39:17 +00:00
2017-09-27 02:13:11 +00:00
![](http://mailtrain.org/mailtrain.png)
2016-04-04 12:42:36 +00:00
## Features
2017-09-27 02:03:34 +00:00
* Subscriber list management
* List segmentation
* Custom fields
* Email templates
* Large CSV list import files
2016-04-04 12:42:36 +00:00
2018-05-23 16:33:08 +00:00
Subscribe to Mailtrain Newsletter [here ](https://mailtrain.org/subscription/S18sew2wM ) (uses Mailtrain obviously)
2016-04-04 13:17:22 +00:00
2017-09-27 01:55:19 +00:00
## Hardware Requirements
* 1 vCPU
* 1024 MB RAM
2017-03-08 16:04:27 +00:00
2017-09-27 01:55:19 +00:00
## Quick Start - Deploy with Docker
2017-06-24 23:31:57 +00:00
#### Requirements:
2017-03-17 14:48:50 +00:00
2017-06-24 23:31:57 +00:00
* [Docker ](https://www.docker.com/ )
* [Docker Compose ](https://docs.docker.com/compose/ )
2017-09-27 01:55:19 +00:00
#### Steps:
2017-09-27 02:03:34 +00:00
Depending on how you have configured your system and Docker you may need to prepend the commands below with `sudo` .
2017-06-24 23:31:57 +00:00
* Download Mailtrain files using git: `git clone git://github.com/Mailtrain-org/mailtrain.git` (or download [zipped repo ](https://github.com/Mailtrain-org/mailtrain/archive/master.zip )) and open Mailtrain folder `cd mailtrain`
2017-07-21 13:47:10 +00:00
* Copy the file `docker-compose.override.yml.tmpl` to `docker-compose.override.yml` and modify it if you need to.
2017-09-27 01:55:19 +00:00
* Bring up the stack with: `docker-compose up -d`
2018-04-10 11:59:29 +00:00
* Start: `docker-compose start`
2017-06-24 23:31:57 +00:00
* Open [http://localhost:3000/ ](http://localhost:3000/ ) (change the host name `localhost` to the name of the host where you are deploying the system).
* Authenticate as user `admin` with password `test`
* Navigate to [http://localhost:3000/settings ](http://localhost:3000/settings ) and update service configuration.
* Navigate to [http://localhost:3000/users/account ](http://localhost:3000/users/account ) and update user information and password.
2017-09-27 02:03:34 +00:00
## Quick Start - Manual Install (any OS that supports Node.js)
2016-04-28 20:34:44 +00:00
2017-09-27 02:13:11 +00:00
### Requirements:
* Mailtrain requires at least **Node.js v7** . If you want to use an older version of Node.js then you should use version v1.24 of Mailtrain. You can either download it [here ](https://github.com/Mailtrain-org/mailtrain/archive/v1.24.0.zip ) or if using git then run `git checkout v1.24.0` before starting it
2017-03-23 13:47:00 +00:00
1. Download Mailtrain files using git: `git clone git://github.com/Mailtrain-org/mailtrain.git` (or download [zipped repo ](https://github.com/Mailtrain-org/mailtrain/archive/master.zip )) and open Mailtrain folder `cd mailtrain`
2016-04-28 19:47:53 +00:00
2. Run `npm install --production` in the Mailtrain folder to install required dependencies
2016-04-19 09:05:13 +00:00
3. Copy [config/default.toml ](config/default.toml ) as `config/production.toml` and update MySQL and any other settings in it
2016-04-25 10:59:00 +00:00
4. Run the server `NODE_ENV=production npm start`
5. Open [http://localhost:3000/ ](http://localhost:3000/ )
6. Authenticate as `admin` :`test`
7. Navigate to [http://localhost:3000/settings ](http://localhost:3000/settings ) and update service configuration
8. Navigate to [http://localhost:3000/users/account ](http://localhost:3000/users/account ) and update user information and password
2016-04-04 12:36:30 +00:00
2017-09-27 01:55:19 +00:00
## Read The Docs
For more information, please [read the docs ](http://docs.mailtrain.org/ ).
2017-03-04 16:15:16 +00:00
2017-03-04 16:20:32 +00:00
2016-04-04 12:36:30 +00:00
## License
2017-03-02 13:31:06 +00:00
* Versions 1.22.0 and up **GPL-V3.0**
2017-02-17 13:56:55 +00:00
* Versions 1.21.0 and up: **EUPL-1.1**
2016-09-15 06:57:19 +00:00
* Versions 1.19.0 and up: **MIT**
2018-04-10 11:59:29 +00:00
* Up to versions 1.18.0 **GPL-V3.0**