Decorator Plugin Problem
Posted: Fri Jun 06, 2008 11:46 am
Hi,
I think we're having a problem with the decorator plugin because I'm seeing incorrect information in the replacements which are made. For example, for a given email address we should see the recipient's user id in the message but we are seeing a different user ID.
Psuedo code for the way we use swift is
Create new swift(new Swift_Connection_Sendmail)
Create new SwiftMessage
Attach html and text message parts (including decorator replacement 'tags')
For Each recipient
Create new Swift_RecipientList
Add recipient to RecipientList
Create substitution array for decorator
Attach decorator plugin
swift->send()
End For Each
Disconnect Swift
Anything which is glaringly wrong there?
Many Thanks
James
P.S. We've sent over 2 million legimate opt-in emails in the 2 months since we've been using swift - pretty impressive!
I think we're having a problem with the decorator plugin because I'm seeing incorrect information in the replacements which are made. For example, for a given email address we should see the recipient's user id in the message but we are seeing a different user ID.
Psuedo code for the way we use swift is
Create new swift(new Swift_Connection_Sendmail)
Create new SwiftMessage
Attach html and text message parts (including decorator replacement 'tags')
For Each recipient
Create new Swift_RecipientList
Add recipient to RecipientList
Create substitution array for decorator
Attach decorator plugin
swift->send()
End For Each
Disconnect Swift
Anything which is glaringly wrong there?
Many Thanks
James
P.S. We've sent over 2 million legimate opt-in emails in the 2 months since we've been using swift - pretty impressive!