Skip to content

Commit

Permalink
Updated mailer docs with option for google password auth , issue #4510
Browse files Browse the repository at this point in the history
By default, the vertx mail client and google both default to XOAUTH2 and that method needs to be disabled in order for password authentication (with app passwords to work)

Addresses issue #4510
  • Loading branch information
akochnev authored and gsmet committed Nov 15, 2019
1 parent c0e6676 commit 3426549
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/main/asciidoc/mailer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ With TLS:

[source]
----
quarkus.mailer.auth-methods=DIGEST-MD5 CRAM-SHA256 CRAM-SHA1 CRAM-MD5 PLAIN LOGIN
[email protected]
quarkus.mailer.host=smtp.gmail.com
quarkus.mailer.port=587
Expand All @@ -245,7 +246,8 @@ quarkus.mailer.password=YOURGENERATEDAPPLICATIONPASSWORD
Or with SSL:

[source]
----
----
quarkus.mailer.auth-methods=DIGEST-MD5 CRAM-SHA256 CRAM-SHA1 CRAM-MD5 PLAIN LOGIN
[email protected]
quarkus.mailer.host=smtp.gmail.com
quarkus.mailer.port=465
Expand All @@ -254,6 +256,8 @@ [email protected]
quarkus.mailer.password=YOURGENERATEDAPPLICATIONPASSWORD
----

Note: the `quarkus.mailer.auth-methods` configuration option is needed for the quarkus mailer to support password auth with google. By default both the mailer and google default to XOAUTH2 which requires registering an application, getting tokens, etc.

== Using SSL with native executables

Note that if you enable SSL for the mailer and you want to build a native executable, you will need to enable the SSL support.
Expand Down

0 comments on commit 3426549

Please sign in to comment.