Introducing the markdown_gmail_sender gem

require 'markdown_gmail_sender'

mgs ={'' => 'yourpassword'}, 
           compose_dir: '/tmp/email/compose', sent_dir: '/tmp/email/sent')

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, its file is moved from the compose directory to the sent directory.

Here's a sample markdown file (/tmp/email/compose/

to: james@*********

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,


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