HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Inserting users' custom profile field in link in mass email

Login / Search

 [ Join | More ]
 Add topic 
#111209 (In Topic #22334)

Community saint


I'm trying to send a email to all our site users which contains a link that inserts custom profile field data into the link. This particular custom profile field, containing a number specific to each user, is connected with a separate database we use to store information about our users.
The user then clicks on the link and it takes them to a page (on a different site) which pulls in personalized information from the separate database.

The custom profile field data is to be inserted at the end of the link. I put the following tempcode at the end of the link-- {$CPF_VALUE,EMB}. After placing the link manually (not through WYSIWYG link editor), I did get the custom profile field data to appear for the Preview email, but then when I actually sent the email to the test group (myself and one other person), the resulting email omitted the custom profile field data from the link. What am I doing wrong?

Last edit: by Rishi Saravanan
Back to the top


Please try:



It will only work for members of course, not newsletter subscribers.

It should bind in 'member_id' for whatever member is being emailed. This then is used for the second parameter to the CPF_VALUE symbol, which explicitly sets the member. Without it it defaults to currently active member (i.e. you).

Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top

Community saint

success, thank you!
Back to the top
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: