Page 1 of 1

Decorator with an associative array?

Posted: Mon May 04, 2009 3:13 pm
by DanStephenson
Hello everyone,

I am using SWIFT mailer, and need to use the decorator plugin, so I can add someone's full name and email address to the body of the email.

I've already created an associative array, for the batchsend, which looks like this

Code: Select all

 
[joe@email.com] => 'Joe Smith'
[bob@myisp.net] => 'Bob Green'
 
How can I turn this associative array into a 2 dimensional array, for use with the decorator? Or can I just feed this array directly to the decorator?