commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (EMAIL-149) EmailConstants.MAIL_SMTP_FROM value is incorrect
Date Wed, 04 Mar 2015 22:10:39 GMT

    [ https://issues.apache.org/jira/browse/EMAIL-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347655#comment-14347655
] 

Thomas Neidhart edited comment on EMAIL-149 at 3/4/15 10:10 PM:
----------------------------------------------------------------

The mail.smtp.from property defines the bounce address and is only set when one is defined.

What do you mean with "by an EE container that properly sets the from address"?

Edit: did you test with debug enabled and can you provide the output of it?


was (Author: tn):
The mail.smtp.from property defines the bounce address and is only set when one is defined.

What do you mean with "by an EE container that properly sets the from address"?

> EmailConstants.MAIL_SMTP_FROM value is incorrect
> ------------------------------------------------
>
>                 Key: EMAIL-149
>                 URL: https://issues.apache.org/jira/browse/EMAIL-149
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.3.3
>            Reporter: Richard DiCroce
>
> Per the JavaMail Javadoc (https://javamail.java.net/nonav/docs/api/), the standard property
for the from address is "mail.from", not "mail.smtp.from".
> This incorrect value causes sending emails to fail if using a Session provided by an
EE container that properly sets the from address. Observed on WildFly 8.2.0.Final.
> Workaround: add the "mail.smtp.from" value to the session properties. You don't need
to set the actual value, the fact that it's there is enough:
> session.getProperties().setProperty(EmailConstants.MAIL_SMTP_FROM, "");



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message