I have the following problem: How do I send an email using Wildfly
when the SMTP doesn't need a password?
I already succeeded doing this using Glassfish
. But when I migrate to Wildfly
, I don't know what parameter I need to pass.
This is my Glassfish
configuration:
This is my standalone.xml
:
<mail-session name="noreply" jndi-name="java:jboss/mail/noreply" from="something@domainblablabla.com">
<smtp-server outbound-socket-binding-ref="blablabla-smtp" ssl="true" tls="false" username="something@domainblablabla.com"/>
</mail-session>
<outbound-socket-binding name="blablabla-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>