Class: Net::SMTP
- Inherits:
-
Object
- Object
- Net::SMTP
- Defined in:
- lib/gmail-oauth.rb
Instance Method Summary collapse
Instance Method Details
#auth_xoauth(email_address, options) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/gmail-oauth.rb', line 23 def auth_xoauth(email_address, ) auth_string = GmailOAuth::Client.new(email_address, .merge(:service => :smtp)).xoauth_string res = critical { get_response('AUTH XOAUTH ' + base64_encode(auth_string)) } check_auth_response res res end |