No commit activity in last 3 years
No release in over 3 years
Scans a *compose* folder (file directory) for messages (files in markdown format) to send using the gmail gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.0, ~> 0.6
>= 1.13.2, ~> 1.13
>= 0.6.37, ~> 0.6
 Project Readme

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