Make the from email for releasing to ELPA a little more configurable.

This commit is contained in:
Nathan Weizenbaum 2009-09-21 14:42:39 -07:00
parent 3bcee425a2
commit dcc399faba
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ task :release_elpa do
rev = File.read(".git/#{$1}").strip
end
from = "nex342@gmail.com"
from = `git config user.email`
raise "Don't know how to send emails except via Gmail" unless from =~ /@gmail.com$/
to = "elpa@tromey.com"
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
Net::SMTP.start('smtp.gmail.com', 587, 'gmail.com', from, read_password("GMail Password"), :login) do |smtp|