Sitecore 8.2, EXM 3.4
My client would like to send an automated e-mail, triggered by submitting an WFFM form. This is possible out of the box, however, my client would like the recipient of the triggered e-mail, to be based on a selected country from a field in the WFFM form. Furthermore, it should be possible to add custom tokens, targeting the submitted fields from the form.
I thought this could easily be accomplished by creating a custom save action that first locates the recipient based on the country, and then triggers the automated e-mail in EXM, while setting the "To" and adds the custom tokens myself, using a Dictionary of sorts. But it seems like the EXM API only accepts a contact Id if i am not mistaken, when trying to send an e-mail using their Sitecore.Modules.EmailCampaign.ClientApi.SendStandardMessage() method. How would you recommend approaching this? We would like to take advantage of the customization/personalization/statistics of EXM.