Custom placeholder on Subject mail NO WORK 4 me

Hi
I’m a beginner with PHPLIST 3.6.7 and PHP 7.4.29.
I’m trying, using the subjectlineplaceholder plugin, to insert in the subject of the email the FIRSTNAME

that are custom fields in the form of each subscriber.

unfortunately it doesn’t work

where do i go wrong?

THIS POST NOT WORK for ME
and on

> this post is

code only for show email etc??

many thanks

@paolo.cviero Have you enabled the plugin on the Manage Plugins page?

yes, sure
subjectLinePlaceholdersPlugin is active

@paolo.cviero It works for me. Composing the campaign

image

Then in the email received

image

In the received email, what is in the Subject field?

Is the placeholder replaced if you include it in the body of the email?

In the received email, what is in the Subject field?
NOTHING

Is the placeholder replaced if you include it in the body of the email?
WORKING OK

@paolo.cviero Can you try debugging this by editing the file admin/plugins/subjectLinePlaceholdersPlugin.php

Add these two lines then send a test email. There should be some output at the top of the page showing the attribute values and the message content

private function parseSubjectHolders($content,$atts = array()) 
{
    var_dump($atts);
    var_dump($content);
	foreach ($atts as $key => $val) {

i understand, i used [FIRSTNAME] only on “message object” but now work when i put placeholder in “META DATA message object”
sorry for my mistrake
thanks for help