What are the chances a Reply-To header can get added to the instance.mvt template for the mmx-contact-form flex component?
I have been manually adding the following in red (which I need to do after any Miva update that includes flex component updates):
Can this be added to the instance.mvt for the mmx-contact-form flex component for the next Miva update so this does not have to be done manually?
It makes replying to the contact form emails a bit easier and I believe the old contact form with the challenge question used similar code on the CTFM page template.
Thank you.
I have been manually adding the following in red (which I need to do after any Miva update that includes flex component updates):
Code:
<mvt:comment>Set Email Helpers</mvt:comment>
<mvt:assign name="l.settings:instance:submission:email:name" value="ternary( NOT ISNULL l.settings:instance:heading:heading_text:value, l.settings:instance:heading:heading_text:value, l.settings:sequence_item:name )" />
<mvt:assign name="l.settings:instance:submission:email:subject " value="ternary( NOT ISNULL l.settings:instance:email:subject:value, l.settings:instance:email:subject:value, 'Form Submission for \"' $ l.settings:instance:submission:email:name $ '\" from \"' $ g.Store:name $ '\"')" />
<mvt:assign name="g.eol" value="asciichar(13) $ asciichar(10)"/>
<mvt:assign name="l.settings:instance:submission:email:headers " value="'MIME-Version: 1.0' $ g.eol" />
<mvt:assign name="l.settings:instance:submission:email:headers " value="l.settings:instance:submission:email:headers $ 'Content-type: text/html; charset=' $ g.Store:charset $ g.eol" />
<mvt:foreach iterator="field" array="instance:form:fields:children">
<mvt:if expr="l.settings:field:type:value EQ 'input:email'">
<mvt:assign name="l.settings:instance:submission:email:replyto " value="l.settings:field:submission:value" />
</mvt:if>
</mvt:foreach>
<mvt:assign name="l.settings:instance:submission:email:headers " value="l.settings:instance:submission:email:headers $ 'Reply-To:' $ l.settings:instance:submission:email:replyto $ g.eol" />
<mvt:assign name="l.settings:instance:submission:email:from" value="g.Store:email" />
It makes replying to the contact form emails a bit easier and I believe the old contact form with the challenge question used similar code on the CTFM page template.
Thank you.
Comment