module RSS2Mail::Transport::SMTP
Constants
- DEFAULT_HOST
- DEFAULT_PORT
- MESSAGE_TEMPLATE
Public Instance Methods
deliver_mail(to, *args)
click to toggle source
# File lib/rss2mail/transport.rb 83 def deliver_mail(to, *args) 84 deliver_smtp(Net::SMTP, [to], *args) 85 end
Private Instance Methods
deliver_smtp(klass, tos, subject, body, type)
click to toggle source
# File lib/rss2mail/transport.rb 89 def deliver_smtp(klass, tos, subject, body, type) 90 klass.start(*@smtp) { |smtp| 91 tos.each { |to| 92 smtp.send_message( 93 ERB.new(MESSAGE_TEMPLATE).result(binding), 94 FROM, 95 *to 96 ) 97 } 98 } 99 end