a.daniello Posted January 19, 2015 Report Posted January 19, 2015 I think that styling html email is good and using cross client/browser compatible email (also responsive) is better. Moreover add the necessary code html and css to make it through the WYSIWYG editor of Blesta, it is virtually impossible (if it is good, after saving you lose pieces). I image, editing email templates in Blesta, that i can select for each template a "model", stored in company folder: so i can make transactional emails more attractive and effective. I made some changes that work for us:- we get and update an html email from https://github.com/mailgun/transactional-email-templates;- we put one or more placeholders (eg, "@BODY@") in this template;- we put this template in "uploads/[COMPANY_ID]/email_templates" folder and name (e.g. "tpl_email.htm");- we added in app/models/emails.php after row #806 $email->html = $parser->parseString($email->html, $parser_options_html)->render($tags); the following Loader::loadComponents($this, array("SettingsCollection")); $tmp = $this->SettingsCollection->fetchSetting(null, Configure::get("Blesta.company_id"), "uploads_dir"); $template_path = $tmp['value'] . Configure::get("Blesta.company_id") . DS . "email_templates" . DS; if (file_exists($template_path . "tpl_email.htm")) { $tpl = file_get_contents($template_path . "tpl_email.htm"); $email->html = str_replace('@BODY@', $email->html, $tpl); } Attached you can see one of results. But now i like to have a more friendly management of this feature. What do you think about? NickP 1
Blesta Addons Posted January 20, 2015 Report Posted January 20, 2015 a option to allow using a premade html template is a good feature , like the mailchmp or any other mailing system .
alexistkd Posted January 20, 2015 Report Posted January 20, 2015 +1 blesta should have some nice templates by default for email welcome, etc as examples so then we can modify it and play with them
a.daniello Posted January 20, 2015 Author Report Posted January 20, 2015 Thanks! It's simple to code, but very nice. Waiting for Blesta team feedback about this idea.
NickP Posted March 10, 2015 Report Posted March 10, 2015 Would be nice to have the ability to use universal CSS for the email templates!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now