Class: Rex::Proto::Sms::Model::Smtp
- Inherits:
-
Object
- Object
- Rex::Proto::Sms::Model::Smtp
- Defined in:
- lib/rex/proto/sms/model/smtp.rb
Instance Attribute Summary collapse
-
#address ⇒ String
SMTP address.
-
#from ⇒ String
Sender.
-
#helo_domain ⇒ String
The domain to use for the HELO SMTP message.
-
#login_type ⇒ Symbol
SMTP login type (:login, :plain, and :cram_md5).
-
#password ⇒ String
SMTP password.
-
#port ⇒ Fixnum
SMTP port.
-
#username ⇒ String
SMTP account/username.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Rex::Proto::Sms::Model::Smtp
constructor
Initializes the SMTP object.
Constructor Details
#initialize(opts = {}) ⇒ Rex::Proto::Sms::Model::Smtp
Initializes the SMTP object.
48 49 50 51 52 53 54 55 56 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 48 def initialize(opts={}) self.address = opts[:address] self.port = opts[:port] || 25 self.username = opts[:username] self.password = opts[:password] self.helo_domain = opts[:helo_domain] || 'localhost' self.login_type = opts[:login_type] || :login self.from = opts[:from] || '' end |
Instance Attribute Details
#address ⇒ String
Returns SMTP address.
9 10 11 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 9 def address @address end |
#from ⇒ String
Returns Sender.
29 30 31 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 29 def from @from end |
#helo_domain ⇒ String
Returns The domain to use for the HELO SMTP message.
33 34 35 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 33 def helo_domain @helo_domain end |
#login_type ⇒ Symbol
Returns SMTP login type (:login, :plain, and :cram_md5).
25 26 27 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 25 def login_type @login_type end |
#password ⇒ String
Returns SMTP password.
21 22 23 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 21 def password @password end |
#port ⇒ Fixnum
Returns SMTP port.
13 14 15 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 13 def port @port end |
#username ⇒ String
Returns SMTP account/username.
17 18 19 |
# File 'lib/rex/proto/sms/model/smtp.rb', line 17 def username @username end |