Created
July 31, 2013 17:20
-
-
Save tpitale/6124084 to your computer and use it in GitHub Desktop.
Ruby script to deliver standup email. Requires ruby and the mail gem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'mail' | |
today = Time.now.strftime('%Y-%m-%d') | |
options = { :address => "smtp.gmail.com", | |
:port => 587, | |
:domain => '<your domain>', | |
:user_name => '<your full email>', | |
:password => '<your password>', | |
:authentication => 'plain', | |
:enable_starttls_auto => true } | |
Mail.defaults do | |
delivery_method :smtp, options | |
end | |
Mail.deliver do | |
to '<your group email>' | |
from 'Standup <<your group email>>' | |
subject "Standup #{today}" | |
body <<-EOM | |
This is the daily standup thread for #{today}. Please reply by the end of | |
the day with what you did Today, plan to do Tomorrow, and any Blockers you | |
are facing or questions you have for the group. | |
Thanks! | |
EOM | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment