Need help! I am attempting to send an email from my template. I am using this template code:
I cannot get any content into the content of the email.
I would like to have some global content added to the email. Can't find a way to do it.
Are the mvt:assigns for Title, description, and content below the call to SendEmail optional? Should they be removed if not used?
I'm stumpted!
Here is the template code:
<mvt:assign name="l.email:to" value="'[email protected]'" />
<mvt:assign name="l.email:from" value="'[email protected]'" />
<mvt:assign name="l.email:headers" value="'Content-Type: text/html; charset=UTF-8'" />
<mvt:assign name="l.email:subject" value="g.basket:basket_id" />
<mvt:capture variable="l.email:message">
<mvt:do file="g.Module_Feature_TUI_MGR" name="l.success" value="TemplateManager_Render_Page('email_template ')" />
</mvt:capture>
<mvt:assign name="l.email:message" value="glosub(l.email:message, '%email_title%', 'The Title')" />
<mvt:assign name="l.email:message" value="glosub(l.email:message, '%email_description%', 'This is the description')" />
<mvt:assign name="l.email:message" value="glosub(l.email:message, '%email_content%', 'g.shipemail')" />
<mvt:do file="g.Module_Library_Utilities" name="l.success" value="v9_SendEmail(l.email)" />
<mvt:if expr="l.success">
Message Sent!
<mvt:else>
Error: Message not sent
</mvt:if>
I cannot get any content into the content of the email.
I would like to have some global content added to the email. Can't find a way to do it.
Are the mvt:assigns for Title, description, and content below the call to SendEmail optional? Should they be removed if not used?
I'm stumpted!
Here is the template code:
<mvt:assign name="l.email:to" value="'[email protected]'" />
<mvt:assign name="l.email:from" value="'[email protected]'" />
<mvt:assign name="l.email:headers" value="'Content-Type: text/html; charset=UTF-8'" />
<mvt:assign name="l.email:subject" value="g.basket:basket_id" />
<mvt:capture variable="l.email:message">
<mvt:do file="g.Module_Feature_TUI_MGR" name="l.success" value="TemplateManager_Render_Page('email_template ')" />
</mvt:capture>
<mvt:assign name="l.email:message" value="glosub(l.email:message, '%email_title%', 'The Title')" />
<mvt:assign name="l.email:message" value="glosub(l.email:message, '%email_description%', 'This is the description')" />
<mvt:assign name="l.email:message" value="glosub(l.email:message, '%email_content%', 'g.shipemail')" />
<mvt:do file="g.Module_Library_Utilities" name="l.success" value="v9_SendEmail(l.email)" />
<mvt:if expr="l.success">
Message Sent!
<mvt:else>
Error: Message not sent
</mvt:if>
Comment