Skip to content

Instantly share code, notes, and snippets.

@andrew-serrano
Last active April 28, 2020 17:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrew-serrano/b132dffbf6a7304ee548486b0f3d1491 to your computer and use it in GitHub Desktop.
Save andrew-serrano/b132dffbf6a7304ee548486b0f3d1491 to your computer and use it in GitHub Desktop.
Manually trigger a preexisting email
<mvt:comment>
Overrides if needed
</mvt:comment>
<mvt:assign name="l.run:override_from" value="''" />
<mvt:assign name="l.run:override_reply_to" value="''" />
<mvt:assign name="l.run:override_to" value="''" />
<mvt:assign name="l.run:override_cc" value="''" />
<mvt:assign name="l.run:override_bcc" value="''" />
<mvt:assign name="l.run:override_subject" value="''" />
<mvt:comment>
Load Order
</mvt:comment>
<mvt:do file="g.Module_Library_DB" name="l.success" value="Order_Load_ID(g.Order_ID, l.run:order)" />
<mvt:comment>
Load email
</mvt:comment>
<mvt:do file="g.Module_Root $ '/modules/fulfill/templateorderemails.mvc'" name="l.success" value="TemplateOrderEmail_Load_Code('EMAIL_PAGE_CODE_WITHOUT_TEMPLATE', l.email_template)" />
<mvt:comment>
Send
</mvt:comment>
<mvt:do file="g.Module_Root $ '/modules/fulfill/templateorderemails.mvc'" name="l.success" value="TemplateOrderEmails_SendEmail(l.run, l.email_template)" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment