When a recipient registers for a mailinglist, I need to add them to a second independent system. That second system has a way of receiving an email containing information about a recipient, parsing the email and adding them to that second system. So my requirement is that when a recipient registers, I want to send an email (a service email) to a defined address but I need to be able to dynamically generate the content of that service email to contain full detail about the recipient. Having the ability to use Tags in the service email would solve this requirement.
I can also imagine other situations where this would be useful. Consider a situation where a recipient registers for a mailing where part of the offer is that they will be called by a third party with no access to OpenEMM. For example as a Real Estate Agent, I might want to notify a Mortgage Lender that the recipient has requested a call from a lender. Sending an email asking for immediate attention.
Another case would be that I want one of my assistants to receive an email whenever a recipient registers so that something could be manually actioned, for example sending a printed brochure, calling to confirm some action.
You may use the Action Script feature to write individual data into your servicemail. Just append action "send service mail" to your subscription registration form in OpenEMM, fill the header fields "to" and "subject" with your data and insert the mail content in fields "text version" and "HTML version".
Now the magic: If you want to show data from the form in the mail content use script
(replace EMAIL with the data field you want to show). If you do not want to show a placeholder in case the data field is empty add an exclamation mark like this
If you want to show additional profile data from the database you have to insert action "load recipient data" before the servicemail action. Now you may use data from the customerData object like
Thanks. That sounds exactly what I need, but unfortunately I can't get it to work. Probably because I really don't understand the scripting. This is my action:
How is this action triggered, by a link or by a form? If not by a form, you do not have the form data in the request and you have to use action "load recpient data" and the customerData object.