Class: Net::SMTP::AuthPlain
- Inherits:
-
Authenticator
- Object
- Authenticator
- Net::SMTP::AuthPlain
- Defined in:
- lib/net/smtp/auth_plain.rb
Instance Attribute Summary
Attributes inherited from Authenticator
Instance Method Summary collapse
Methods inherited from Authenticator
auth_class, auth_classes, auth_type, #base64_encode, check_args, #continue, #finish, #initialize
Constructor Details
This class inherits a constructor from Net::SMTP::Authenticator
Instance Method Details
#auth(user, secret) ⇒ Object
5 6 7 |
# File 'lib/net/smtp/auth_plain.rb', line 5 def auth(user, secret) finish('AUTH PLAIN ' + base64_encode("\0#{user}\0#{secret}")) end |