Project

html2mail

0.0
No commit activity in last 3 years
No release in over 3 years
Console tool which generates html/eml stuff for your newsletters from html-files (support images in separate files)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 5.8
~> 10.0
~> 0.11

Runtime

<= 4.2.5, ~> 4.2
~> 2.13
~> 1.6
~> 1.8
 Project Readme

html2mail

Console tool which generates html/eml stuff for your newsletters from html-files (support images in separate files)

Gem Version

Examples

Show inline help:

General help: html2mail help Hel for send command: html2mail send --help

Convert html with images to .eml

html2mail convert /path/to/newsletter.html

or all html files at once:

html2mail convert /path/to/*.html

Save "premailed" HTML files (convert css to inline styles):

html2mail prepare /path/to/*.html

Send test emails and use stored config for SMTP server:

html2mail --smtp_address=mail.example.com --smtp_user_name=newsletter@example.com --smtp_password=princess1 send /path/to/newsletters/*.html --to your@domain.com --subj='Test mail'

Init SMTP config:

WARNING: Password stored as plain text in config file .html2mail.yml file in $HOME for Linux

html2mail --smtp_address=mail.example.com --smtp_user_name=newsletter@example.com --smtp_password=princess1 initconfig

Send test emails and use stored config for SMTP server:

html2mail send /path/to/newsletters/*.html --to your@domain.com

Send newsletter.html to all adresses from list.txt:

html2mail bulksend -l list.txt newsletter.html

Based on gems

  • ActionMailer
  • premailer
  • nokogiri
  • GLI

License

MIT License