We need to send an email as an Action in a product variant.
Below is the std template code. Note an email address is entered as part of the mailto code in the template.
We need this email to vary based on the customer placing the order.
Can anyone help with this. What code do we enter to acheive this?
<xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<out>
<sendMail>
<mailFrom>support@company.com</mailFrom>
<mailTo>johndoe@example.com</mailTo>
<subject>Email subject</subject>
<textBody>Email text body</textBody>
<htmlBody>
<h1>Email HTML body</h1>
</htmlBody>
</sendMail>
</out>
</xsl:template>
</xsl:transform>