I want to authenticate myself using my Gmail ID and password on a Gmail SMTP server. I am using the GSASL library. I have a set of mechanisms that my client supports: Anonymous, External, Login, Plain, SecureID, Digest-MD5 and CRAM-MD5. Does somebody know which mechanism Gmail uses for user authentication?
相关问题
- Django & Amazon SES SMTP. Cannot send email
- Gmail IMAP with PHP?
- How to add sender name before sender address in py
- Error while trying to get access to google.com for
- Email body empty when select to send email by Gmai
相关文章
- c#发送邮件,附件损坏
- com.sun.mail.smtp.SMTPSenderFailedException: 550 5
- Debug HTML Email in Gmail App
- Sending email using php, gmail, and swiftmailer ca
- How to read the Content Type header and convert in
- Outlook SMTPClient server error 5.3.4 5.2.0
-
553 5.7.1
: Sender address rejected: not - Send email from my custom mailgun SMTP address
To find out what authentication mechanisms an SMTP server supports, send the
EHLO
command. If you haven't built your own SMTP client yet, you can test this using TELNET. The server will respond with the ESMTP extensions that it supports, including AUTH. For example, if you send theEHLO
command to smtp.gmail.com, you will find that it currently supports 4 mechanisms:So the answer to your question is Login, Plain, XOAuth, and XOAuth2.
Note that XOAuth has been deprecated in favor of XOAuth2: https://developers.google.com/accounts/docs/OAuth2
at least this work for me :D cheers
To quote Google's documentation for authenticating to GMail's SMTP:
the authentication in this case is "Plain".