View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0020247||phpList 3 application||Campaign Send Process||public||13-08-20 21:35||18-08-20 10:29|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Summary||0020247: Placeholder Subscriber ID is replaced by Message ID|
|Description||When using the placeholder [id] in the URL for "Send a web page", [id] is not replaced with the subscriber's ID (as mentioned in the help context), but with the message ID.|
I have traced this back to the file sendemaillib.php, line 1545.
If "Send a web page" is used, $cached[$messageid]['content'] is not the the actual content of the message, but only the URL to the web page.
Our fix is to remove the key 'id' from the array of considered placeholders of the comment out the 1545, but a proper fix for this would be welcome, so we can update phpList anytime without re-fixing this.
|Tags||No tags attached.|
||Thanks for finding that. Would you mind wrapping it in a Pull Request on Github?|
||@melino please can you clarify what the problem actually is? Do you want the placeholder [ID] to be replaced by the user id, not by the message id?|
@duncanc Yes. When you create a campaign you can select to "Send a webpage" and when you select this you can enter the URL. If you click on the ? icon in front of the URL input field, you'll see that the context help lists available placeholders, one of them is "[id] - the subscriber ID".
We call a web page with the subscriber ID as parameter to personalize the email content that is generated by this web page. But we found, that [id] is replaced by the message ID and not by the subscriber ID, so the personalization fails.
||@melino See https://github.com/phpList/phplist3/pull/695|