send_message

send_message(msgstr, from_addr, *to_addrs) Instance Public methods Sends msgstr as a message. Single CR (ârâ) and LF (ânâ) found in the msgstr, are converted into the CR LF pair. You cannot send a binary message with this method. msgstr should include both the message headers and body. from_addr is a String representing the source mail address. to_addr is a String or Strings or Array of Strings, representing the destination mail address or addresses. Example Net::SMTP.start('smtp

sendmail

sendmail(msgstr, from_addr, *to_addrs) Instance Public methods Alias for: send_message

set_debug_output

set_debug_output(arg) Instance Public methods Alias for: debug_output=

ssl?

ssl?() Instance Public methods Alias for: tls?

start 2

start(helo = 'localhost', user = nil, secret = nil, authtype = nil) Instance Public methods Opens a TCP connection and starts the SMTP session. Parameters helo is the HELO domain that you'll dispatch mails from; see the discussion in the overview notes. If both of user and secret are given, SMTP authentication will be attempted using the AUTH command. authtype specifies the type of authentication to attempt; it must be one of :login, :plain, and :cram_md5. See the notes on SMTP A

started?

started?() Instance Public methods true if the SMTP session has been started.

starttls

starttls() Instance Public methods SMTP command dispatcher

starttls?

starttls?() Instance Public methods Returns truth value if this object uses STARTTLS. If this object always uses STARTTLS, returns :always. If this object uses STARTTLS when the server support TLS, returns :auto.

starttls_always?

starttls_always?() Instance Public methods true if this object uses STARTTLS.

starttls_auto?

starttls_auto?() Instance Public methods true if this object uses STARTTLS when server advertises STARTTLS.