https://github.com/zuf/html2mail
Convert HTML-files with images to .eml or, 'premailed' html file or send it by email
https://github.com/zuf/html2mail
Last synced: over 1 year ago
JSON representation
Convert HTML-files with images to .eml or, 'premailed' html file or send it by email
- Host: GitHub
- URL: https://github.com/zuf/html2mail
- Owner: zuf
- License: mit
- Created: 2015-12-22T14:57:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T00:34:55.000Z (over 9 years ago)
- Last Synced: 2024-04-25T15:02:20.634Z (about 2 years ago)
- Language: HTML
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# html2mail
Console tool which generates html/eml stuff for your newsletters from html-files (support images in separate files)
[](https://badge.fury.io/rb/html2mail)
## 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