Quote from: emmanuel at Oct 14, 2011, 10:09 AMhello, very useful snippet.I got it working well.
but how do you import thousand of contacts right now ? db import ?
hi , how did you replace the place holder in the message field?
from my understanding the following is supposed to do it ?
$message = $newsletter->get('message');
//get message including parsed placeholders
$chunk = $this->modx->newObject('modChunk');
$chunk->setContent($message);
$message = $chunk->process(array(
'firstname' => $subscriber->get('firstname'),
'lastname' => $subscriber->get('lastname'),
'fullname' => $subscriber->get('firstname').' '.$subscriber->get('lastname'),
'company' => $subscriber->get('company'),
'email' => $subscriber->get('email'),
'code' => $subscriber->get('code')
));