Sha256: 0ba1da540b5491d9fdf785cbc00152629eab1d8e4172faa5b68ea1364f8530d1

Contents?: true

Size: 819 Bytes

Versions: 9

Compression:

Stored size: 819 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'net/smtp'

module GGSM
  module Email
    def send_email(user,title,msg)
      message = <<END_OF_MESSAGE
From: GGSM Merge Request <18019913184@163.com>
To: 王右右 <wangyouyou@souche.com>,王锡臣 <wangxichen@souche.com>,沈若川 <shenruochuan@souche.com>,朱久言 <zhujiuyan@souche.com>
Subject: [#{user}] #{title}

#{msg}
END_OF_MESSAGE

      Net::SMTP.start('smtp.163.com', 25, 'YoKey',
                      '18019913184@163.com', 'able180896919') do |smtp|
        smtp.send_message message,
                          '18019913184@163.com',
                          'wangyouyou@souche.com',
                          'wangxichen@souche.com',
                          'shenruochuan@souche.com',
                          'zhujiuyan@souche.com'
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ggsm-1.9.3 lib/ggsm/mr/email.rb
ggsm-1.9.2 lib/ggsm/mr/email.rb
ggsm-1.9.1 lib/ggsm/mr/email.rb
ggsm-1.9.0 lib/ggsm/mr/email.rb
ggsm-1.8.6 lib/ggsm/mr/email.rb
ggsm-1.8.5 lib/ggsm/mr/email.rb
ggsm-1.8.4 lib/ggsm/mr/email.rb
ggsm-1.8.3 lib/ggsm/mr/email.rb
ggsm-1.8.2 lib/ggsm/mr/email.rb