dcparker / ruby-gmail

A Rubyesque interface to Gmail. Connect to Gmail via IMAP and manipulate emails and labels. Send email with your Gmail account via SMTP. Includes full support for parsing and generating MIME messages.
http://dcparker.github.com/ruby-gmail
792 stars 123 forks source link

Invalid credentials on University ID #51

Closed Salinn closed 10 years ago

Salinn commented 11 years ago

I was can login using one of my normal gmail accounts but I could not with my @rit.edu email. Although it does not look like it RIT uses gmail. I know that the problem is that the part after the user mail

meta.username = username =~ /@/ ? username : username + '@gmail.com'

Is there a way to possibly pass in an optional parameter for the part after the @ or allow people to pass in their entire email?

myobie commented 10 years ago

You need to specify your entire email as your username, then it will work. The regex check appends gmail.com for you if you only specify your local part.