Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > net/imapライブラリ > Net::IMAPクラス > authenticate
authenticate(auth_type, arg...)
Sends an AUTEHNTICATE command to authenticate the client. The auth_type parameter is a string that represents the authentication mechanism to be used. Currently Net::IMAP supports "LOGIN" and "CRAM-MD5" for the auth_type.
ex).
imap.authenticate('LOGIN', user, password)