Jump to content

Creating a Customizable Email Template


Alpha-Snail

This topic is 6679 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am trying to create a template that allows users to click on a number of buttons to create a customizable template for emailing. The "Email Campaign Management" application that comes with FM8 does exactly what I want in this respect (and a whole lot that I don't want in others), but I'll be honest in saying that, despite my knowledge and experience in FM, I don't know how they did it! :

If after creating the layout with buttons and a field that gets populated with them, how do you convert that into a field that merges the data? For example, if I have in the template "Dear ...", how do I convert that to "Dear John" for one record and"Dear Jane" for another?

Any help would be greatly greatly appreciated!!!

Ron

Link to comment
Share on other sites

You can do that using the "Substitute" function.

Substitute([LetterContent; <>;FirstName];

[<>;Email)

What the substitute does is look for the <> and replace that with the contents of the corresponding FIELD. Where <> is your place holder and FIELD is the name of your field containing the names.

Link to comment
Share on other sites

Wrong syntax. See here:

http://www.fmforums.com/forum/showtopic.php?tid/172295/post/186702

Alpha-Snail, since you have FM8 Advanced, you might also consider this custom function to evaluate the merge text to return a result. There's a practical Contacts-type example somewhere towards the end of the thread (post#165807):

http://www.fmforums.com/forum/showtopic.php?tid/120434/

Link to comment
Share on other sites

This topic is 6679 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.