
|
If you were logged in you would be able to see more operations.
|
|
|
|
There's no facility in the MailEngine.sendMessage method (javadoc that says: Convenience method for sending messages with attachments.) for maintaining that the sender/from attribute is consistent with what is specified in mail.properties.
I propose that the method signature has 'String sender' added to it. This makes sense to me, because the caller of this method most likely has access to the 'mailMessage' bean from the Spring app context, which can be used to get the from address.
|
|
Description
|
There's no facility in the MailEngine.sendMessage method (javadoc that says: Convenience method for sending messages with attachments.) for maintaining that the sender/from attribute is consistent with what is specified in mail.properties.
I propose that the method signature has 'String sender' added to it. This makes sense to me, because the caller of this method most likely has access to the 'mailMessage' bean from the Spring app context, which can be used to get the from address. |
Show » |
Sort Order:
|
bnoll@baitshop
...where bnoll is my username and baitshop is my hostname.
Obviously not a real email address, just something it grocked from the environment. This patch makes that 'from' address be whatever was set in the mail.properties file.