https://forums.modx.com/thread/?thread=46464
https://forums.modx.com/thread/46464/email-notification-based-on-user-input#dis-post-268960
I’m building a "wishlist" email form where the intended recipients are those that are filled out in the "senders form" or form that the customer is filling out.
Somehow I need to pass in the email addresses AFTER the form has submitted.
Right now, instead of replacing these fields with real email addresses, it tries to send them to [+requestEmail2+], [+requestEmail3+], etc...
How do I make it so it parses those variable holders so it actually sends to a real email address?
controller...
[[eForm?
&subject=`Your friend sent you their wishlist!`
&formid=`wishListSendersForm`
&ccsender=`1`
&to=`[+requestEmail1+]`
&bcc=`[+requestEmail2+],[+requestEmail3+],[+requestEmail4+],[+requestEmail5+]`
&autosender=`[email protected]`
&tpl=`WISHLIST_sendersform`
&report=`WISHLIST_recipients_receivers_form`
&gotoid=`196`
&sendAsHtml
!]]
tpl or "WISHLIST_sendersform" template: (Not the whole thing, just the pertinent part)