Method: Net::SMTP#esmtp
- Defined in:
- lib/net/smtp.rb
#esmtp ⇒ Object Also known as: esmtp?
Set whether to use ESMTP or not. This should be done before calling #start. Note that if #start is called in ESMTP mode, and the connection fails due to a ProtocolError, the SMTP object will automatically switch to plain SMTP mode and retry (but not vice versa).
238 239 240 |
# File 'lib/net/smtp.rb', line 238 def esmtp @esmtp end |