GSBCfamily / bvcms

The open source church management system
http://touchpointsoftware.com
GNU General Public License v2.0
1 stars 1 forks source link

Email Replacement Code for HTML file #5

Closed hkouns closed 9 years ago

hkouns commented 9 years ago

Support Request 3: Heath Kouns @ gsbcfamily [5653]

Feature Request - Email Replacement Code for HTML file

I would like to have an replacement code for inserting the contents of an html file into an email.

 {file: <filename>}   or  {html: <filename>}

Use Case:

I have an email template setup (actually a few) that have a section for upcoming events.... typically it is a bulleted list or table. In order to keep the list updated, either we have to update the template... or we have to keep saving an ongoing draft.

Editing the template is limited to a handful of folks... and I don't want to keep it updated myself. ;-)

The ongoing draft isn't very elegant and errors and mistakes get propagated from email to email.

I would like to keep the list in a separate file and then pull it in as the email is sent. It would just pull in the raw HTML and insert it into the email... maybe wrap it in a Div. I have looked at Jquery, etc... but those dynamic techniques are not looked upon very highly in the email security realm.

The biggest issue I see is controlling access ... or where to store the files.

If the files are stored in Special Content... then you have to change the permission structure to allow certain folks access to the email related HTML files while restricting them from the balance of the Special Content. Another option would be to treat it similar to a "Draft" email and let people manage it through the blue toolbar (like a draft email)... and let them share amongst a team similar to email drafts.

hkouns commented 9 years ago

Submitted https://github.com/bvcms/bvcms/pull/55

{insertdraft:Name_of_Draft}

hkouns commented 9 years ago

Merged into BVCMS/master: https://github.com/bvcms/bvcms/commit/a39a8a9cf812c9350696eb1396a76d7a1b4b268a