auth_cram_md5

auth_cram_md5(user, secret) Instance Public methods

auth_login

auth_login(user, secret) Instance Public methods

auth_plain

auth_plain(user, secret) Instance Public methods

authenticate

authenticate(user, secret, authtype = DEFAULT_AUTH_TYPE) Instance Public methods

capable_auth_types

capable_auth_types() Instance Public methods Returns supported authentication methods on this server. You cannot get valid value before opening SMTP session.

capable_cram_md5_auth?

capable_cram_md5_auth?() Instance Public methods true if server advertises AUTH CRAM-MD5. You cannot get valid value before opening SMTP session.

capable_login_auth?

capable_login_auth?() Instance Public methods true if server advertises AUTH LOGIN. You cannot get valid value before opening SMTP session.

capable_plain_auth?

capable_plain_auth?() Instance Public methods true if server advertises AUTH PLAIN. You cannot get valid value before opening SMTP session.

capable_starttls?

capable_starttls?() Instance Public methods true if server advertises STARTTLS. You cannot get valid value before opening SMTP session.

data

data(msgstr = nil) Instance Public methods This method sends a message. If msgstr is given, sends it as a message. If block is given, yield a message writer stream. You must write message before the block is closed. # Example 1 (by string) smtp.data(<<EndMessage) From: john@example.com To: betty@example.com Subject: I found a bug Check vm.c:58879. EndMessage # Example 2 (by block) smtp.data {|f| f.puts "From: john@example.com" f.puts "To: betty@example.com" f.puts "Su