Skip to content

A wrapper around nodemailer, which can use preconfigred settings from a user config file.

Notifications You must be signed in to change notification settings

klorenz/mailtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailtool

This is a mail tool, which brings together nodemailer for sending and browserbox for recieving mails and you can store configurations for both in a common configfile. Passwords are stored in external files, which are referenced in config.

Configuration

Configuration brings together configuration of NodeMailer (in transport section) and browserbox (in mailbox section).

Example:

Default configuration resides in ~/.mailtool/config.cson. Paths to passwords are relative to config file.

Private:
	mailbox:
		type: 'imap'
		host: 'some.cool.host'
		port: 993
		secure: true
		auth:
			user: 'donald'
			pass: "passwords/Private-mailbox-auth"

Business:
	transport:
		host: 'smtp.entenhausen.com'
		port: 465
		auth:
			user: 'phantomas'
			pass: "passwords/Business-transport-auth"
		secure: true
		rejectUnauthorized: false

	mailbox:
		type: 'imap'
		host: 'imap.entenhausen.com'
		port: 993
		secure: true
		auth:
			user: 'phantomas'
			pass: "passwords/Business-mailbox-auth"

	dailyReport:
		from: "Phantomas <phantomas@entenhausen.com>"
		subject: "Daily Report"
		to: "news@entenhausen.com"

	default:
		from: "Phantomas <phantomas@entenhausen.com>"

		signature: """
			Phantomas
			World Saviour

			Entenhausen
		"""

About

A wrapper around nodemailer, which can use preconfigred settings from a user config file.

Resources

Stars

Watchers

Forks

Packages

No packages published