Module: DNGG::Email
- Included in:
- MR
- Defined in:
- lib/dngg/mr/email.rb
Instance Method Summary collapse
Instance Method Details
#send_email(user, title, msg) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dngg/mr/email.rb', line 6 def send_email(user,title,msg) user_mail = `git config user.email` = <<END_OF_MESSAGE DNGG Merge Request <[email protected]> From: #{user} To: Guang Android Team Subject: [#{user}] #{title} #{msg} END_OF_MESSAGE Net::SMTP.start('smtp.exmail.qq.com',25,'zhuruixue', '[email protected]','wwL9RS9cLeBxv7co', :plain) do |smtp| smtp. , '[email protected]', '[email protected]' end end |