Module: N::Mail
- Defined in:
- lib/n/utils/mail.rb
Class Method Summary collapse
-
.send(from, to, body) ⇒ Object
Send an email.
Class Method Details
.send(from, to, body) ⇒ Object
Send an email
20 21 22 23 24 |
# File 'lib/n/utils/mail.rb', line 20 def self.send(from, to, body) Net::SMTP.start($smtp_server, 25) { |smtp| smtp.(body, from, to) } end |