Class: ItTools::MailTools
- Inherits:
-
Object
- Object
- ItTools::MailTools
- Defined in:
- lib/it_tools/mail.rb
Instance Method Summary collapse
- #sendMailToBeehive(from, to, subject, body, user, password) ⇒ Object
- #sendSmtpSslMail(from, to, subject, body, user, password, host, port) ⇒ Object
Instance Method Details
#sendMailToBeehive(from, to, subject, body, user, password) ⇒ Object
13 14 15 |
# File 'lib/it_tools/mail.rb', line 13 def sendMailToBeehive(from,to,subject,body,user, password) sendSmtpSslMail(from,to,subject,body,user, password, "stbeehive.oracle.com", 465) end |
#sendSmtpSslMail(from, to, subject, body, user, password, host, port) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/it_tools/mail.rb', line 5 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 |