[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21623#action_21623
 ] 

Philipp Bracher commented on MAGNOLIA-2650:
-------------------------------------------

Hi can you test the following patch?

{code}
Index: src/main/java/info/magnolia/cms/taglibs/util/SimpleMailTag.java
===================================================================
--- src/main/java/info/magnolia/cms/taglibs/util/SimpleMailTag.java     
(revision 23131)
+++ src/main/java/info/magnolia/cms/taglibs/util/SimpleMailTag.java     
(working copy)
@@ -295,7 +295,7 @@
             Map parameters = new HashMap(request.getParameterMap());
             // TODO: avoid those kinds of redundacies in the mail system
             if (StringUtils.isEmpty(template)) {
-                email = 
MailModule.getInstance().getFactory().getEmail(parameters);
+                email = 
MailModule.getInstance().getFactory().getEmailFromType(parameters, mailType);
                 email.setBody();
             }
             else {

{code}

> <cmsu:simpleMail -> Couln't instantiate email type: null
> --------------------------------------------------------
>
>                 Key: MAGNOLIA-2650
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2650
>             Project: Magnolia
>          Issue Type: Bug
>          Components: taglibs
>    Affects Versions: 4.0 RC4
>            Reporter: Tom Wespi
>            Assignee: Teresa Miyar
>         Attachments: stacktrace.txt
>
>
> Insert in a jspx:
> <cmsu:simpleMail 
>               subject="test" 
>               to="tom.we...@esense.ch" 
>               from="t...@esense.ch"
>               type="simple"
>               />
> Stacktrace attached

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

  • [magnoli... JIRA (on behalf of Tom Wespi)
    • [ma... JIRA (on behalf of Philipp Bracher)
    • [ma... JIRA (on behalf of Tom Wespi)
    • [ma... JIRA (on behalf of Tom Wespi)
    • [ma... JIRA (on behalf of Tom Wespi)
    • [ma... JIRA (on behalf of Tom Wespi)
    • [ma... JIRA (on behalf of Tom Wespi)
    • [ma... on behalf of Philipp Bracher [old account - now Philipp Bärfuss]
    • [ma... JIRA (on behalf of Teresa Miyar)
    • [ma... JIRA (on behalf of Teresa Miyar)
    • [ma... JIRA (on behalf of Teresa Miyar)
    • [ma... JIRA (on behalf of Teresa Miyar)

Reply via email to