We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49302
    • 14 Posts
    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]] `
    ]]
      • 44234
      • 219 Posts
      I expect you can achieve this by modifying the built-in 'email' hook (convert to a custom hook) but I'm afraid it's beyond my PHP skills.

      http://rtfm.modx.com/extras/revo/formit/formit.hooks#FormIt.Hooks-CustomHooks [ed. note: davidpede last edited this post 11 years, 11 months ago.]
        Find me on Twitter, GitHub or Google+