change subject accoridn to email address

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

change subject accoridn to email address

Postby mridang_agarwal » 6:49pm, Mon 23 Apr, 2007

Hi guys,
I just installed phplist. I'm using it as a mass mailer for my organisation and not for newsletters. However, i need a particular feature. For example, i have 50 email addresses and for each of those 50 email address i have a Employee ID's. That means, 50 emails addresses and 50 employee id's - one for each. The body of the mail that will be sent to all is common but the subject should be the "Hello <employee>". How do i get the employye id into the subject field. i'm pretty well versed in PHP. i dont mind if i have to hack a few core files. Please help me out someone. Till date none of the Open Source PHP applications (Nucleus CMS, Wordpress, phpBB) have let me down, i hope i can add phpList to the list.
Thanks in advance guys!
Posts: 9
Joined: 6:43pm, Mon 23 Apr, 2007

Postby Dragonrider » 8:57pm, Mon 23 Apr, 2007

First you need to define a new Attribute for your list, in this example, called Name and using textbox as type.

Once you have set this, simply add your employee name/id to each email address, and then, within your message body, start it off with Hello [NAME], and this should pick up the data you have entered in the Name field, and personalise each email sent.

This, as far as I know, works for any attributes you set, just enclose them in square brackets, they do not need to be all CAPITALS, though using Capitals will keep the continuity of phpList attributes, but as long as they match your field name, it should work.

I've just tried this as an experiment on my testing list, and it does work, within the body of the email. It does NOT however, work as part of the Subject field.
My sites:-,,,
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Postby mridang_agarwal » 4:20am, Tue 24 Apr, 2007

How do i add a new attribute?
Posts: 9
Joined: 6:43pm, Mon 23 Apr, 2007

Return to Question & Problems - after installing

Who is online

Users browsing this forum: No registered users and 6 guests