views:

34

answers:

1

I am using PHP Swift Mailer to send Mail to my user, whose email and name are stored in my database, I am able to send them mail using SwiftMailer's batchSend() method. but i want to send every mail body to be specific to each user like example.. if i have 3 user with name and email(user1=> [email protected], user2=> [email protected], user3=> [email protected]), in body i want hello, user_name. the message. thank you, user_name how can this be done, is there any Plugin or method available for composing custom message.

A: 

hey i got the solution, it was given in the Swift Mailer documentation, in Plugin Section. We can do this by using the Decorator Plugin of Swift Mailer. Before asking the question i should have read the documentation completely..

Harish Kurup