Decorator with an associative array?

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
DanStephenson
Forum Newbie
Posts: 1
Joined: Mon May 04, 2009 3:09 pm

Decorator with an associative array?

Post 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?
Post Reply