Module: Ronin::Support::Network::ESMTP::Mixin
Overview
Provides helper methods for communicating with ESMTP services.
Constant Summary
Constants included from SMTP::Mixin
Instance Method Summary collapse
-
#esmtp_connect(host, **kwargs) {|esmtp| ... } ⇒ Net::SMTP?
Creates a connection to the ESMTP server.
-
#esmtp_message(**kwargs, &block) ⇒ SMTP::Email
Alias for SMTP::Mixin#smtp_message.
Methods included from SMTP::Mixin
message, #smtp_connect, #smtp_message, #smtp_send_message
Methods included from SSL::Mixin
#ssl_accept, #ssl_banner, #ssl_cert, #ssl_connect, #ssl_connect_and_send, #ssl_context, #ssl_open?, #ssl_send, #ssl_server_loop, #ssl_server_socket, #ssl_socket
Methods included from TCP::Mixin
#tcp_accept, #tcp_banner, #tcp_connect, #tcp_connect_and_send, #tcp_open?, #tcp_send, #tcp_server, #tcp_server_loop, #tcp_server_session
Instance Method Details
#esmtp_connect(host, **kwargs) {|esmtp| ... } ⇒ Net::SMTP?
Creates a connection to the ESMTP server.
99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/ronin/support/network/esmtp/mixin.rb', line 99 def esmtp_connect(host,**kwargs) if block_given? smtp_connect(host,**kwargs) do |smtp| smtp.esmtp = true yield smtp end else smtp = smtp_connect(host,**kwargs) smtp.esmtp = true return smtp end end |
#esmtp_message(**kwargs, &block) ⇒ SMTP::Email
Alias for SMTP::Mixin#smtp_message.
44 45 46 |
# File 'lib/ronin/support/network/esmtp/mixin.rb', line 44 def (**kwargs,&block) (**kwargs,&block) end |