Sha256: c266b58fa61387f3cb5619f069d924811fbb31a32af1e1f6604fbe0156d0ea6c

Contents?: true

Size: 615 Bytes

Versions: 3

Compression:

Stored size: 615 Bytes

Contents

require 'pony'

module ItTools
  class MailTools
    def sendSmtpSslMail(from,to,subject,body,user, password, host, port)
      Pony.mail(:to => to, :from => from, :subject => subject, :body => body, :via => :smtp, :smtp => {
                  :host => host,
                  :port => port,
                  :user => user,
                  :password => password,
                  :auth => :login})
    end
    def sendMailToBeehive(from,to,subject,body,user, password)
      sendSmtpSslMail(from,to,subject,body,user, password, "stbeehive.oracle.com", 465)
    end
  end
end


                
                

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
beta_tools-0.0.5 lib/it_tools/mail.rb
beta_tools-0.0.4 lib/it_tools/mail.rb
it_tools-0.0.2 lib/it_tools/mail.rb