0

If i use SWIFT MAILER to send a thousand email:

Not personilzed case:

$message = Swift_Message::newInstance('Wonderful Subject') ->setFrom(array('[email protected]' => 'John Doe')) ->setTo(array('[email protected]', '[email protected]' => 'A name')) ->setBody('Here is the message itself') 

It can send with one array.

However, when i have to send personalize letter

FOREACH ($name as $receiver){ $message = Swift_Message::newInstance('Wonderful Subject') ->setFrom(array('[email protected]' => 'John Doe')) ->setTo(array($receiver)) ->setBody('Here is the message itself')} 

Since the content is different , I have to use foreach to send one mail per once time??Is that more efficient way? I just have to specific the receiver name and the unsubscribe id in each mail sent.

Thank you for help

1 Answer 1

2

The Decorator plugin was created for just this purpose.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.