[jboss-jira] [JBoss JIRA] (WFLY-11818) wildfly-16.0.0.Final: "From address" is no more used as default from in email

Wolfgang Mayer (Jira) issues at jboss.org
Fri Mar 8 08:35:00 EST 2019


    [ https://issues.jboss.org/browse/WFLY-11818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705663#comment-13705663 ] 

Wolfgang Mayer commented on WFLY-11818:
---------------------------------------

I've now tested this with java version "1.8.0_181" and got the same error. So I guess the problem was there already before and did nor come up before any change in my environment.

But the question still is why is the from user not taken from the configuration as default?
Is this working in your environment? 


> wildfly-16.0.0.Final: "From address" is no more used as default from in email
> -----------------------------------------------------------------------------
>
>                 Key: WFLY-11818
>                 URL: https://issues.jboss.org/browse/WFLY-11818
>             Project: WildFly
>          Issue Type: Bug
>          Components: Mail
>    Affects Versions: 16.0.0.Final
>         Environment: mvn -v
> Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
> Maven home: /apps/apache-maven-3.6.0
> Java version: 11.0.2, vendor: Oracle Corporation, runtime: /usr/java/jdk-11.0.2
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "4.12.14-lp150.12.48-default", arch: "amd64", family: "unix"
>            Reporter: Wolfgang Mayer
>            Assignee: Tomaz Cerar
>            Priority: Major
>
> As mentioned in the Help (description) of 'Mail Session' configuration:
> From: *From address that is used as default from, if not set when sending*
> Apparently this is not the case anymore in wildfly-16.0.0.Final.
> For example I made a test with quickstart-16.0/mail/.
> When omitting the line
> *message.setFrom(new InternetAddress(from));*
> Sending mail fails with:
> com.sun.mail.smtp.SMTPSendFailedException: 554-Transaction failed
> 554 Unauthorized sender address.
> I have the same issue when replacing the line above with
> message.setFrom(new InternetAddress());
> I am pretty sure that this is working in wildfly-15



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list