Class: BaseMail

Inherits:
Object
  • Object
show all
Defined in:
lib/libisi/mail/base.rb

Overview

Copyright © 2007-2010 Logintas AG Switzerland

This file is part of Libisi.

Libisi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Libisi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Libisi. If not, see <www.gnu.org/licenses/>.

Direct Known Subclasses

TMailMail

Instance Method Summary collapse

Instance Method Details

#default_fromObject



20
21
22
# File 'lib/libisi/mail/base.rb', line 20

def default_from
  "#{program_name.inspect} <#{user}@#{full_qualified_domainname}>"
end

#default_subjectObject



23
24
25
# File 'lib/libisi/mail/base.rb', line 23

def default_subject
  "Email from #{program_name.inspect} on #{full_qualified_domainname} by #{user}"
end

#send_email(recipients, text, options = {}) ⇒ Object



27
# File 'lib/libisi/mail/base.rb', line 27

def send_email(recipients, text, options = {}); send_mail(recipients, text, options); end

#send_mail(recipients, text, options = {}) ⇒ Object



28
29
30
# File 'lib/libisi/mail/base.rb', line 28

def send_mail(recipients, text, options = {})
  raise "not implemented"
end