Page 1 of 1

How To Add Certain Placeholder Fields in Email Messages

PostPosted: 3:20am, Sat 31 Mar, 2007
by JJRose
Hello,

I am using phplist 2.10.4.
I would like to include some attribute fields in email messages. Currently, I have an attributed called "Name" for people to add their name when subscribing.

In the editing of the templates for outgoing email messages and for the web screen messages, I added the placeholder of [Name] so that the name will display.

This displays fine on the web page messages, but doesn't work in the eamil messages. I have also tried using [FIRST NAME] and also the attribute number (which is 1) as [1]. Neither 'first name' or '1' work in either the web pages display or the email messages. The only thing I can get to work is the attribute field called Name used as [Name] for the web pages confirmation screens.

Also, I noticed a placeholder called [USERDATA] in one of the default email messages, and so I tried experimenting with this field also in the first confirmation email, in the hopes that the userdata may display the name of the subscriber. But that placeholder also doesn't work on email messages either.

I have edited both the templates on the "Subscribe Pages" sections, as well as the "configuration" page. All without success.

So, my goal is: I would like to include the subscriber's name to display in my emails and newsletters.

My question is: How can I get the email messages to also display my "name" attribute in confirmation emails AND the actual newsletters?

Eg, someone called Joe subscribes, and on the screen webpage it reads as "Welcome to our Mailing List, Joe".
Then when they receive their confirmation emails (and the newsletters) they are also addressed by their name.

Thank you.
JJRose

PostPosted: 3:33am, Sat 31 Mar, 2007
by pia
Good question! I would also like to know...

PostPosted: 3:31pm, Sun 01 Apr, 2007
by JJRose
Hello. Is there anyone that can answer this question for me???

Thank you.

Re: How To Add Certain Placeholder Fields in Email Messages

PostPosted: 5:09pm, Sun 01 Apr, 2007
by H2B2
JJRose wrote:My question is: How can I get the email messages to also display my "name" attribute in confirmation emails AND the actual newsletters?

Eg, someone called Joe subscribes, and on the screen webpage it reads as "Welcome to our Mailing List, Joe".
Then when they receive their confirmation emails (and the newsletters) they are also addressed by their name.

With regard to including (custom) attributes on the "thank you page", you can just add the placeholder to the source code of that web page: Admin >> subscribe pages >> Thank you page.

As mentioned in the documentation, it is not (yet) possible to include custom placeholders in system messages, like the confirmation request email for instance. You can however include placeholders in list message (e.g. newsletters).
Ref: http://docs.phplist.com/Placeholders