Skip to content

Instantly share code, notes, and snippets.

@tpitale
Created July 31, 2013 17:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpitale/6124084 to your computer and use it in GitHub Desktop.
Save tpitale/6124084 to your computer and use it in GitHub Desktop.
Ruby script to deliver standup email. Requires ruby and the mail gem.
#!/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