Class: Rex::Proto::Mms::Model::Smtp
- Inherits:
-
Object
- Object
- Rex::Proto::Mms::Model::Smtp
- Defined in:
- lib/rex/proto/mms/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::Mms::Model::Smtp
constructor
Initializes the SMTP object.
Constructor Details
#initialize(opts = {}) ⇒ Rex::Proto::Mms::Model::Smtp
Initializes the SMTP object.
50 51 52 53 54 55 56 57 58 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 50 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.
11 12 13 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 11 def address @address end |
#from ⇒ String
Returns Sender.
31 32 33 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 31 def from @from end |
#helo_domain ⇒ String
Returns The domain to use for the HELO SMTP message.
35 36 37 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 35 def helo_domain @helo_domain end |
#login_type ⇒ Symbol
Returns SMTP login type (:login, :plain, and :cram_md5).
27 28 29 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 27 def login_type @login_type end |
#password ⇒ String
Returns SMTP password.
23 24 25 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 23 def password @password end |
#port ⇒ Fixnum
Returns SMTP port.
15 16 17 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 15 def port @port end |
#username ⇒ String
Returns SMTP account/username.
19 20 21 |
# File 'lib/rex/proto/mms/model/smtp.rb', line 19 def username @username end |