Page 1 of 1

Email Module - how to do mail merge [SOLVED]

PostPosted: Thu Oct 28, 2010 2:12 pm
by tomhousley
Hello,

Installed the Email 0.1 Module succedfully.

I would like to be able create a 'mail merge' when I send out emails.

So, say I have a column in my 'email_table' called ema_firstname I would like to have each email sent out like:

Code: Select all
Dear Steve.....


Other mailing list software I have used, this is done by eg. putting the field in curly braces, and then this is parsed when it comes to sending. Eg.

Code: Select all
Dear {ema_firstname}.....


Is this built in? I can't find any reference as to how to do 'out of the box' so to speak. Does it have something to do with the 'Email Macro' select on the email form?

Thank you, Tom

Re: Email Module - how to do mail merge

PostPosted: Thu Oct 28, 2010 8:46 pm
by shannah
Yes. This is built in. You should be able to see what the macros look like using the email macro function in the pull-down above the message body field. I don't have any documentation about this, and I actually haven't even used this in production myself yet, even though it has been there from the beginning. Let me know how it goes.

-Steve

Re: Email Module - how to do mail merge

PostPosted: Fri Oct 29, 2010 12:39 am
by tomhousley
Hi Steve,

I thought it would have something to do with the 'Email Macro' pulldown.

However, whatever I do with the pulldown, nothing happens.... It lists the fields in 'email_table'... I have tried most obvious things I can think of but like my earlier post.. if I type into the message field ema_firstname (where this field contains firstname of recipient):
Code: Select all
ema_firstname
{ema_firstname}
etc...


When I receive the email, it is not converted into the first name, it comes through as it is typed above.

I would be really grateful for some pointers on this... Once I get my head around it, I will add it to the wiki, as I'm sure other could make use of this too.

Many thanks, Tom

Re: Email Module - how to do mail merge

PostPosted: Fri Oct 29, 2010 4:41 am
by tomhousley
Sorted it... added it to the Wiki... http://xataface.com/wiki/Email#toc17