a.daniello Posted January 19, 2015 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted January 20, 2015 Report Share 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 . Quote Link to comment Share on other sites More sharing options...
alexistkd Posted January 20, 2015 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Jonathan Posted January 20, 2015 Report Share Posted January 20, 2015 +1, very handy Quote Link to comment Share on other sites More sharing options...
a.daniello Posted January 20, 2015 Author Report Share Posted January 20, 2015 Thanks! It's simple to code, but very nice. Waiting for Blesta team feedback about this idea. Quote Link to comment Share on other sites More sharing options...
NickP Posted March 10, 2015 Report Share Posted March 10, 2015 Would be nice to have the ability to use universal CSS for the email templates! Quote Link to comment Share on other sites More sharing options...
Joseph H Posted March 10, 2015 Report Share Posted March 10, 2015 +1 Quote Link to comment Share on other sites More sharing options...
WebHostCentral UK - Dean Posted March 16, 2015 Report Share Posted March 16, 2015 +1 for this also Quote Link to comment Share on other sites More sharing options...
domaingood Posted July 12, 2021 Report Share Posted July 12, 2021 +1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.