No commit activity in last 3 years
No release in over 3 years
Sends an email from a file directory containing a Markdown file representing the email message.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

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

Sending an email using the markdown_mail_sender gem

require 'markdown_mail_sender'

user, password = 'alice', 'password'

mgs = MarkdownMailSender.new(user, password, 
        compose_dir: '/tmp/email/compose', sent_dir: '/tmp/email/sent', 
        smtp_host: 'mail.jamesrobertson.eu')

mgs.deliver_all

Examples

Save your Markdown file (with a .md file extension) in the compose directory (e.g. /tmp/email/compose). Here's a few examples:

Sending a message

from: james@jamesrobertson.eu
to: jr001@jamesrobertson.eu

subject: Test message 3

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

Hope it works!

James

Sending a message with an attachment

from: james@jamesrobertson.eu
to: jr001@jamesrobertson.eu
attachment:  /tmp/test1.txt

subject: Test message 4

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

Hope it works!

James

Sending a message with multiple attachments

from: james@jamesrobertson.eu
to: jr001@jamesrobertson.eu
attachments: 
  /tmp/test1.txt
  /tmp/test2.txt

subject: Test message 4

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

Hope it works!

James

Resources

See also

smtp mail email gem markdown_mail_sender