Module: Ronin::Network::ESMTP
- Includes:
- SMTP
- Included in:
- Net, Mixins::ESMTP, Support
- Defined in:
- lib/ronin/network/esmtp.rb
Overview
Provides helper methods for communicating with ESMTP services.
Constant Summary
Constant Summary
Constants included from SMTP
Instance Method Summary (collapse)
-
- (Net::SMTP) esmtp_connect(host, options = {}) {|session| ... }
Creates a connection to the ESMTP server.
-
- (Object) esmtp_message(options = {}, &block)
-
- (Object) esmtp_session(host, options = {}) {|session| ... }
Starts an ESMTP session with the ESMTP enabled server.
Methods included from SMTP
default_port, default_port=, message, #smtp_connect, #smtp_message, #smtp_send_message, #smtp_session
Instance Method Details
- (Net::SMTP) esmtp_connect(host, options = {}) {|session| ... }
Creates a connection to the ESMTP server.
76 77 78 79 80 81 82 |
# File 'lib/ronin/network/esmtp.rb', line 76 def esmtp_connect(host,={}) session = smtp_connect(host,) session.esmtp = true yield session if block_given? return session end |
- (Object) esmtp_message(options = {}, &block)
35 36 37 |
# File 'lib/ronin/network/esmtp.rb', line 35 def (={},&block) (,&block) end |
- (Object) esmtp_session(host, options = {}) {|session| ... }
Starts an ESMTP session with the ESMTP enabled server.
104 105 106 107 108 109 110 |
# File 'lib/ronin/network/esmtp.rb', line 104 def esmtp_session(host,={}) smtp_session(host,) do |session| session.esmtp = true yield session if block_given? end end |