Hi,
I'm trying to send multiple auto messages unique to each mail recipient.
I want each of the 5 recipients to have different url's in their email.
I have been able to send one message to multiple recipients with the code below
[[!FormIt?
&emailTpl=`CentralizedDebtObligationEmailTpl`,`template2`,`template2`
&emailSubject=`Some Sucker Bought Another CDO`
&emailTo=`[[+email1]], [[+email2]], [[+email3]], [[+email4]], [[+email5]] `
]]
But I want each of the recipients to have unique messages sent to them.
May I know if there is a way to have multiple &emailTpl point to different recipients?
for example
[[!FormIt?
(&emailTpl=`CentralizedDebtObligationEmailTpl` &emailTo=`[[+email1]]`)
(&emailTpl=`EmailTpl2` &emailTo=`[[+email2]]`)
&emailSubject=`Some Sucker Bought Another CDO`
]]
OR
have multiple formit calls
[[!FormIt?
&emailTpl=`EmailTpl1`
&emailSubject=`Some Sucker Bought Another CDO`
&emailTo=`[[+email1]] `
]]
[[!FormIt?
&emailTpl=`EmailTpl002`
&emailSubject=`Some Sucker Bought Another CDO`
&emailTo=`[[+email0022]] `
]]
-
☆ A M B ☆
- 24,524 Posts
You'll need to use a post-hook to send different email messages to different users. It's basically just a snippet whose code FormIt runs in order of its &hooks property. You could examine the default email hook to see how to basically clone it to mail specific addresses with specific tpls.
http://rtfm.modx.com/extras/revo/formit/formit.tutorials-and-examples/formit.examples.custom-hook