Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 424e3c0

Browse files
committed
add note about gmail 2-factor auth
1 parent 7f4394d commit 424e3c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

05_network-io/5-05_sending-email.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ yourself via a Gmail account:
4646
If all is well, you should receive an email from yourself shortly
4747
thereafter.
4848

49+
[NOTE]
50+
====
51+
If you've set up two-factor authentication on your Gmail account, the +send-message+ call will
52+
fail with an +AuthenticationFailedException+. You can create an application-specific password
53+
here: https://accounts.google.com/b/0/IssuedAuthSubTokens?hide_authsub=1, and use that as the
54+
value for +pass+ instead.
55+
====
56+
57+
4958
==== Discussion
5059

5160
pass:[<?dbhtml orphans="4"?>]With the venerable JavaMail at its core, there isn't much +postal+

0 commit comments

Comments
 (0)