In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
485 [In-Portal CMS] Front End feature request N/A 2009-12-23 03:26 2012-07-25 05:29
alex  
alex  
normal  
closed 5.0.2-B1  
fixed  
 
none 5.2.0-B3  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/753364d08cd548eb?hl=en
Allows to centrally specify all e-mail design template
1
0000485: Create more control over sent emails
We have engine, that allows to sent emails based on user actions throughout the system. Each email content can be directly specified for each language. In case if there is need to create common footer for all sent emails, that site administrator could edit "COMMON.FOOTER" event content and place requested text there.

Such approach doesn't allow to style all sent emails (e.g. styles, images, etc.). I propose to create 2 fields in language record: HtmlEmailTemplate and TextEmailTemplate. Possible format of this variable could be:
<html>
<head>
<title>$subject</title>
</head>
<body>
$body
</head>

Of course <inp2: style tags also could be allowed inside this template. Because of emails are sent from administrative console and from Front-End all paths to external resources like images, styles must be absolute. Contents of current COMMON.FOOTER event should be moved to HtmlEmailTemplate field in format "$body footer here".
Add "use_custom_design" parameter during e-mail sending to allow excluding e-mail design usage for individual e-mail events.
related to 0000066needs feedback  (Icebox)alex Add Email Details feature to Email Logs 
related to 0001224closed  (5.2.0)alex Email event usage refactoring 
patch email_event_design_templates.patch (32,630) 2012-03-20 04:44
http://tracker.in-portal.org/file_download.php?file_id=1559&type=bug
patch html_design_template_ignored_during_clean_install.patch (1,547) 2012-03-26 12:23
http://tracker.in-portal.org/file_download.php?file_id=1571&type=bug
patch email_event_design_upgrade_fix.patch (1,561) 2012-07-16 07:37
http://tracker.in-portal.org/file_download.php?file_id=1749&type=bug
Issue History
2012-07-25 05:29 alex Note Added: 0004834
2012-07-25 05:29 alex Status resolved => closed
2012-07-16 07:47 alex Changeset attached r15452
2012-07-16 07:47 alex Changeset attached r15451
2012-07-16 07:40 alex Changeset attached 5.2.x r15450
2012-07-16 07:39 alex Note Added: 0004787
2012-07-16 07:37 alex File Added: email_event_design_upgrade_fix.patch
2012-03-26 12:25 alex Changeset attached 5.2.x r15238
2012-03-26 12:24 alex Note Added: 0004520
2012-03-26 12:23 alex File Added: html_design_template_ignored_during_clean_install.patch
2012-03-20 04:48 alex Note Added: 0004504
2012-03-20 04:48 alex Status reviewed and tested => resolved
2012-03-20 04:48 alex Fixed in Version => 5.2.0-B3
2012-03-20 04:48 alex Resolution open => fixed
2012-03-20 04:48 alex Assigned To !COMMUNITY => alex
2012-03-20 04:48 alex Changeset attached 5.2.x r15225
2012-03-20 04:47 alex Description Updated bug_revision_view_page.php?rev_id=986#r986
2012-03-20 04:47 alex Additional Information Updated bug_revision_view_page.php?rev_id=988#r988
2012-03-20 04:45 alex Note Added: 0004503
2012-03-20 04:45 alex Status needs testing => reviewed and tested
2012-03-20 04:45 alex Assigned To => !COMMUNITY
2012-03-20 04:45 alex Developer => alex
2012-03-20 04:45 alex Status active => needs testing
2012-03-20 04:44 alex File Added: email_event_design_templates.patch
2012-03-20 04:44 alex File Deleted: email_event_design_templates.patch
2012-03-20 04:44 alex Change Log Message => Allows to centrally specify all e-mail design template
2012-03-20 04:39 alex Target Version Icebox => 5.2.0
2012-03-20 04:39 alex Estimate Points => 1
2012-03-20 04:39 alex File Added: email_event_design_templates.patch
2012-03-14 12:11 alex Relationship added related to 0001224
2012-03-14 12:11 alex Relationship added related to 0000066
2009-12-23 03:27 alex Target Version => Icebox
2009-12-23 03:26 alex New Issue
2009-12-23 03:26 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/753364d08cd548eb?hl=en

Notes
(0004503)
alex   
2012-03-20 04:45   
Will test all later together.
(0004504)
alex   
2012-03-20 04:48   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0000485: Create more control over sent emails
(0004520)
alex   
2012-03-26 12:24   
Patch "html_design_template_ignored_during_clean_install.patch" fixes issue, that custom html design template were ignored when multiple modules were installed along with In-Portal.
(0004787)
alex   
2012-07-16 07:39   
Patch "email_event_design_upgrade_fix.patch" fixes problem, when after upgrade users were not able to send any e-mails because of empty COMMON.FOOTER e-mail event prior to upgrading.

Since 5.2.0-B3 version was already released I will merge changes from this patch into it and any upcoming version till now. And recreate archives at www.in-portal.com website too.
(0004834)
alex   
2012-07-25 05:29   
Since 5.2.0 version was released.