Join GitHub today
User names and passwords can contain spaces. #51
I'm working with imap, but the same is true of pop3 and smtp... when a user tries to authenticate, user names may contain spaces. That means that for imap, using LOGIN user pass will fail. The solution is to quote the username and password.
For imap in imap_transport.php, the line should become
It might be a good idea to only include quotes when $user or $password has spaces.
Tested on gmail and it works as above.