All Projects → sal-zappa → pipe-mail

sal-zappa / pipe-mail

Licence: MIT license
A tool to easily send e-mails from the command line

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pipe-mail

Smtp-cracker
[NEW] : Simple Mail Transfer Protocol (SMTP) CHECKER - CRACKER Tool V2
Stars: ✭ 67 (+97.06%)
Mutual labels:  smtp
feed2email
RSS/Atom feed updates in your email
Stars: ✭ 37 (+8.82%)
Mutual labels:  smtp
fortran-curl
Fortran 2008 interface bindings to libcurl
Stars: ✭ 25 (-26.47%)
Mutual labels:  smtp
Log-mailer
Log mailer is a program I made to email log files.
Stars: ✭ 46 (+35.29%)
Mutual labels:  smtp
fapro
Fake Protocol Server
Stars: ✭ 1,338 (+3835.29%)
Mutual labels:  smtp
strudelpy
Easy going emails with Python for easy going people, who email
Stars: ✭ 14 (-58.82%)
Mutual labels:  smtp
go-mail
📧 A cross platform mail driver for GoLang. Featuring Mailgun, Postal, Postmark, SendGrid, SparkPost & SMTP.
Stars: ✭ 169 (+397.06%)
Mutual labels:  smtp
smtp-email-spoofer-py
Python 3.x based email spoofer
Stars: ✭ 134 (+294.12%)
Mutual labels:  smtp
NioSmtpClient
Smtp Client based on Netty
Stars: ✭ 25 (-26.47%)
Mutual labels:  smtp
emailSpam
An email spam bot written in Python, to send emails to specified addresses. Use with caution.
Stars: ✭ 70 (+105.88%)
Mutual labels:  smtp
mnm-hammer
mnm implements TMTP protocol. Let Internet sites message members directly, instead of unreliable, insecure email. Contributors welcome! (Client)
Stars: ✭ 66 (+94.12%)
Mutual labels:  smtp
WP Mail
Send Templated emails with WordPress
Stars: ✭ 88 (+158.82%)
Mutual labels:  smtp
emailqueue
A fast, simple yet very efficient email queuing system for PHP/MySQL
Stars: ✭ 75 (+120.59%)
Mutual labels:  smtp
crystal-email
Simple e-mail sending library
Stars: ✭ 110 (+223.53%)
Mutual labels:  smtp
Meteor-Mailer
📮 Bulletproof email queue on top of NodeMailer with support of multiple clusters and servers setup
Stars: ✭ 21 (-38.24%)
Mutual labels:  smtp
Matrix-EmailBridge
A bridge written in Golang to receive and write emails in matrix
Stars: ✭ 101 (+197.06%)
Mutual labels:  smtp
gothic
🦇 Gothic is a user registration and authentication SWT/JWT microservice. It supports REST, gRPC, and gRPC Web API, reCAPTCHA & a variety of DBs with Gorm.
Stars: ✭ 65 (+91.18%)
Mutual labels:  smtp
synchly
Automate database backups with customizable recurring schedules.
Stars: ✭ 27 (-20.59%)
Mutual labels:  smtp
postal
✉️ A fully featured open source mail delivery platform for incoming & outgoing e-mail
Stars: ✭ 12,134 (+35588.24%)
Mutual labels:  smtp
Mail
The Hoa\Mail library.
Stars: ✭ 24 (-29.41%)
Mutual labels:  smtp

Build Status

pipe-mail

A command-line tool to send e-mails via SMTP from the standard input.

Prerequisites

Node.js 7 or above.

Installation

npm install -g pipe-mail

Examples

You can directly send an e-mail from the command line:

echo "Hello world!" | pipe-mail -s Subject -o smtp.fastmail.com -u myusername -p mypassword [email protected] [email protected]

If you don't want to specify the server options every time, you can set them as environment variables:

export PIPEMAIL_SMTP_HOST=smtp.fastmail.com
export PIPEMAIL_SMTP_USER=myusername
export PIPEMAIL_SMTP_PASSWORD=mypassword
echo "Hello world!" | pipe-mail [email protected] [email protected]

You can feed any file to it to send the content via e-mail:

echo "Hello world!" > email.txt
pipe-mail [email protected] [email protected] < email.txt

Usage

$ pipe-mail --help

  Usage: pipe-mail [options] [from-email-address] <recipient-email-address>

  Options:

    -V, --version              output the version number
    -s, --subject <subject>    e-mail subject
    -o, --host <host>          SMTP server host
    -r, --port <port>          SMTP server port. Defaults to 485 if SSL is in use, 587 if not
    -n, --no-ssl               Don't use SSL when connecting to the SMTP server
    -t, --html                 Send message as HTML
    -u, --user <user>          SMTP login username
    -p, --password <password>  SMTP login password
    -h, --help                 output usage information

Environment Variables

Some options can be specified via environment variables:

  • PIPEMAIL_SMTP_HOST
  • PIPEMAIL_SMTP_PORT
  • PIPEMAIL_SMTP_USER
  • PIPEMAIL_SMTP_PASSWORD
  • PIPEMAIL_FROM : From e-mail address. If this is set, the "from-email-address" argument can be omitted

Contributing

Feel free to report any issues or submit PRs via github

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • This module is a wrapper around nodemailer, a comprehensive Node.js module to send e-mails
  • This talk by Justin Searls (@searls) was source of inspiration for unit testing. The testdouble.js library makes the work straightforward
  • Another nodemailer cli tool, nodemailer-cli was also source of inspiration
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].