You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Michael Brohl (JIRA)" <ji...@apache.org> on 2017/08/18 19:02:00 UTC

[jira] [Assigned] (OFBIZ-9395) EmailServices.sendMailFromScreen improved to take multiple attachments with appropriate type along with several email fixes

     [ https://issues.apache.org/jira/browse/OFBIZ-9395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Brohl reassigned OFBIZ-9395:
------------------------------------

    Assignee: Michael Brohl

> EmailServices.sendMailFromScreen improved to take multiple attachments with appropriate type along with several email fixes
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-9395
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9395
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Martin Becker
>            Assignee: Michael Brohl
>            Priority: Minor
>         Attachments: OFBIZ-9395_emailAttachmentsImprovement.patch
>
>
> This patch fixes a number of issues combined in a patch because of the code dependencies.
> Firstly it enables to add BCC adress(es) to service OrderServices.sendOrderNotificationScreens to oversteer ProductStoreEmailSetting of BCC the same was as for CC.
> Secondly a method UtilValidate.isEmailList(String) is added to check a comma separated list of email addresses, used for example to check the String passed to the new BCC field for an Order-Notification.
> Thirdly there are improvements in EmailServices.sendMailFromScreen. The attachment type of MailAttachments is now not only .pdf but depends on the specific file. This has not been the case before - the mime type was always hard coded as .pdf. 
> The same goes for the bodyPart content-type which is now set to the passed content type or the default text/html type. Before this was also always set to text/html. Additionally, an attachment that has the mime-type text/plain is not rendered with the fop-renderer anymore but with a simple text-renderer. Therefore it is possible to send an CSV file as attachment now.
> The patch also refactors some catch-Blocks in the EmailServices.sendMailFromScreen by using multi-catch since the exception handling is always the same.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)