Send An Email#
Description#
Send email
Snippet#
<mvt:assign name="l.email:to" value="'EMAIL_ADDRESS'" />
<mvt:assign name="l.email:from" value="'EMAIL_ADDRESS'" />
<mvt:assign name="l.email:headers" value="'Content-Type: text/html; charset=UTF-8'" />
<mvt:comment><mvt:assign name="l.email:cc" value="''" />
<mvt:assign name="l.email:bcc" value="''" /></mvt:comment>
<mvt:assign name="l.email:subject" value="'This is the subject'" />
<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%', 'This is the content. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, rem.' )" />
<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>