Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Template Editor #978

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Conversation

jack-10000
Copy link

I have added an email template editor with TinyMCE to Admin > Settings > Mail.
This allows an admin to edit the email templates for all customer-facing email bodies and subjects in ITFlow.

Shortcode support allows you to add things like [company_name] or [ticket_prefix] to insert those values into your template body or subject. You can also insert something like [[ticket_prefix][ticket_number]] or [[company_name]] too.
Shortcodes are converted to $variables if they match a predefined list in the prepareEmailTemplateTags function in functions.php.

There is an 'email-templates-sample.sql' file containing sample templates that are ready to use and will update the DB structure necessary.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello & Welcome! :)

Thanks for taking the time to help improve ITFlow. We're excited to review your contributions - we'll review this PR as soon as we can!

Whilst you're waiting, please feel free to check out the forum.

Just so you know, all contributions to ITFlow are licensed under the GNU GPL. By contributing you grant us a perpetual & irrevocable license to include your work in ITFlow.

Copy link

sonarcloud bot commented Jul 22, 2024

@wrongecho
Copy link
Collaborator

Hey @jack-10000

Not sure if Johnny has gotten back to you separately on this, appreciate you opened the PR quite some time ago.. I assume the delay will be due to the size of the PR - unfortunately it's not something I'd have time to thoroughly review either.

There is an 'email-templates-sample.sql' file containing sample templates that are ready to use and will update the DB structure necessary.

I just wanted to mention you would need to update both db.sql (new installs) and database_updates.php for existing installs (increment the version in database_version.php) for this to integrate into the ITFlow update system.

Copy link

sonarcloud bot commented Oct 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants