The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Having ooption to use TEXT or HTML email templates - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Having ooption to use TEXT or HTML email templates (/showthread.php?tid=17) |
Having ooption to use TEXT or HTML email templates - antonitus - Feb 27th, 2009 Hi Ben, I want to set up a TEXT email template only to be sent as the email instead of HTML or vice versa (at the moment it sends it out as HTML by default). In FT1, you are able to do this, however in FT2, I can't seem to do it. Am I looking in the wrong place, I wonder. If you are testing the email templates, it has the option to test templates both in TEXT & HTML or anyone of them by themselves. Ideally, just like FT1, I'd like to be able to send a differnt HTML email to the user and a different TEXT email to the administrator to let him/her know that a submission has been made. This works well in FT1. Can you please let me know how to do this in FT2, if possible. Regards, Tony RE: Having ooption to use TEXT or HTML email templates - Ben - Feb 27th, 2009 Hey Tony, Quote:I want to set up a TEXT email template only to be sent as the email instead of HTML or vice versa (at the moment it sends it out as HTML by default). In FT1, you are able to do this, however in FT2, I can't seem to do it. Am I looking in the wrong place, I wonder. If you are testing the email templates, it has the option to test templates both in TEXT & HTML or anyone of them by themselves. To send the emails in ONLY text format, just enter the email content (on the Content tab) in the Text Template field only, leaving the HTML one blank. Form Tools figures out what format to send the email based on which of those two fields you've filled in. (If it DOESN'T, it's a bug - let me know about it!) Quote:Ideally, just like FT1, I'd like to be able to send a differnt HTML email to the user and a different TEXT email to the administrator to let him/her know that a submission has been made. This works well in FT1. Sure, no problem! I can see how this bit would be confusing for people used to FT1. The key lies in the fact that with Form Tools 2, you can define as many email templates as you want. So in your admin panel, edit the form and go to the Emails tab. There, at the bottom of the page, create a new email template (if it's very similar to an existing one, just pick it from the dropdown). Then, construct the new - different - email template to get sent to the administrator. Email templates can be attached to the same event triggers ("on submission") so that they'll all get sent on the same event. This email template can contain totally different email content. Hope the above helps. Let me know if you have any other questions! - Ben RE: Having ooption to use TEXT or HTML email templates - antonitus - Feb 28th, 2009 Hi Ben, I did the tests and now I understand. It all works well as you say above, so there's no bug. The only thing that I'm concerned about is having to select the same email template to send emails on 1 submission event. I can see how it works. I like the way FT1 handles this, it makes more sense, however saying this, FT2 makes sense too. Don't take my advice of course, as what do I know. In fact both FT1 & FT2 are ok, although I do admit FT2 is far more flexible as you can send as many different content emails on 1 submission as possible, which is great for other forms of submissions, say if you wanted to send one to the user, one to the administrator and one to a technical or sales person but with different information. So well done. Thanks for your help as always. Regards, Tony |