Results for: "OptionParser"

Similar to copy(), but set contains unique identifiers.

Leaves IDLE.

Formats time as an IMAP-style date-time.

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Opens a POP3 session, attempts authentication, and quits.

This method raises POPAuthenticationError if authentication fails.

Example: normal POP3

Net::POP3.auth_only('pop.example.com', 110,
                    'YourAccount', 'YourPassword')

Example: APOP

Net::POP3.auth_only('pop.example.com', 110,
                    'YourAccount', 'YourPassword', true)

Starts a pop3 session, attempts authentication, and quits. This method must not be called while POP3 session is opened. This method raises POPAuthenticationError if authentication fails.

returns true if POP3.ssl_params is set

does this instance use SSL?

Set the read timeout.

No documentation available

true if this object uses STARTTLS.

true if this object uses STARTTLS when server advertises STARTTLS.

Enables SMTP/TLS (STARTTLS) for this object. context is a OpenSSL::SSL::SSLContext object.

Disables SMTP/TLS (STARTTLS) for this object. Must be called before the connection is established to have any effect.

Set the number of seconds to wait until timing-out a read(2) call.

No documentation available

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.example.com') do |smtp|
  smtp.send_message msgstr,
                    'from@example.com',
                    ['dest@example.com', 'dest2@example.com']
end

Errors

This method may raise:

No documentation available
No documentation available
Search took: 6ms  ·  Total Results: 4130