Skip to content

Scans a *compose* folder (file directory) for messages (files in markdown format) to send using the gmail gem.

Notifications You must be signed in to change notification settings

jrobertson/markdown_gmail_sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introducing the markdown_gmail_sender gem

require 'markdown_gmail_sender'

mgs = MarkdownGmailSender.new({'your_username@gmail.com' => 'yourpassword'}, 
           compose_dir: '/tmp/email/compose', sent_dir: '/tmp/email/sent')
mgs.deliver_all

The markdown_gmail_sender gem scans the compose directory for markdown files which contain email messages to be sent. Once an email has been sent, it's file is moved from the compose directory to the sent directory.

Here's a sample markdown file (/tmp/email/test1.md):

from: your_username@gmail.com
to: james@*********.co.uk

subject: Another test message

Hi, this is just a test message to see if it will actually send a message in **HTML format** as well as plain text.

Hope it works!

Happy testing,

James

Note: The markdown file must contain the following fields: from, to and subject.

Resources

gmail markdown send email gem

About

Scans a *compose* folder (file directory) for messages (files in markdown format) to send using the gmail gem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages