forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quarkusio#27920 from rsvoboda/mailer.doc.config
- Loading branch information
Showing
2 changed files
with
5 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -368,6 +368,8 @@ quarkus.mailer.port=587 | |
quarkus.mailer.start-tls=REQUIRED | ||
[email protected] | ||
quarkus.mailer.password=YOURGENERATEDAPPLICATIONPASSWORD | ||
quarkus.mailer.mock=false # In dev mode, prevent from using the mock SMTP server | ||
---- | ||
|
||
Or with SSL: | ||
|
@@ -381,6 +383,8 @@ quarkus.mailer.port=465 | |
quarkus.mailer.ssl=true | ||
[email protected] | ||
quarkus.mailer.password=YOURGENERATEDAPPLICATIONPASSWORD | ||
quarkus.mailer.mock=false # In dev mode, prevent from using the mock SMTP server | ||
---- | ||
|
||
[NOTE] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,32 +181,10 @@ In the `src/main/resources/application.properties` file, you need to configure t | |
Note that the password can also be configured using system properties and environment variables. | ||
See the xref:config-reference.adoc[configuration reference guide] for details. | ||
|
||
Here is an example using _sendgrid_: | ||
|
||
[source,properties] | ||
---- | ||
# Your email address you send from - must match the "from" address from sendgrid. | ||
[email protected] | ||
# The SMTP host | ||
quarkus.mailer.host=smtp.sendgrid.net | ||
# The SMTP port | ||
quarkus.mailer.port=465 | ||
# If the SMTP connection requires SSL/TLS | ||
quarkus.mailer.ssl=true | ||
# Your username | ||
quarkus.mailer.username=.... | ||
# Your password | ||
quarkus.mailer.password=.... | ||
# By default, in dev mode, the mailer is a mock. This disables the mock and use the configured mailer. | ||
quarkus.mailer.mock=false | ||
---- | ||
Configuration of popular mail services is covered in xref:mailer-reference.adoc#popular[the reference guide]. | ||
|
||
Once you have configured the mailer, if you call the HTTP endpoint as shown above, you will send emails. | ||
|
||
Other popular mail services are covered in xref:mailer-reference.adoc#popular[the reference guide]. | ||
|
||
== Conclusion | ||
|
||
This guide has shown how to send emails from your Quarkus application. | ||
|