Hello. I have a problem: I have modified sendemaillib.php code in order to check for a custom placeholder in the message. The code checks for [AVAILABLESPACE] like this
if (eregi("\[AVAILABLESPACE\]",$htmlmessage)) {
and if found it queries one table to get the current number of available space so that I can write in my emails "Register now! Available space: [AVAILABLESPACE]". If I create a new message to be sent and write [AVAILABLESPACE], then send out as a TEST message to some email addresses, it works fine, the [AVAILABLESPACE] gets replaced with "250" from the database for example but if I click on lists tab and select a list to send the message to, the message gets sent with the placeholder as is: [AVAILABLESPACE]... What is different on the list sending ? How can I make the placeholder hack to work with lists sending also because now I only get the text [AVAILABLESPACE].. what happens with the if (eregi("\[AVAILABLESPACE\]",$htmlmessage)) {
?
Any ideas ? Thanks.