JBoss WildFly Mail

Less than a minute

With JBoss you can easily configure your mail profiles so that you can consume theme quickly when needed inside your java code.

Configuring the connection in config file enables you to change your connection, email providers, usernames, passwords… without the need of changing your code and redeploying.

In this example I will go over configuring your JBoss and showing examples on how to receive and send email. The test example I used is tested and working on WildFly 10.1 with Gmail mail server.

Configuring standalone.sh:

Alternatively you can set up all of the configuration using Wildly management console. Go to Configuration->Subsystems->Mail

JavaClass:

Get full potential of mail handling by using Mail subsystem of JBoss and  javax.mail

For full documentation on javax.mail reefer to this article – link .

Post A Reply