<mvt:foreach iterator="error" array="messages:error_messages">
<!-- Display the error on the page -->
<b>&mvt:error;</b>
<!-- Send an email for any error -->
<mvt:do file="g.Module_Library_Utilities" name="l.ok" value="
SendEmail(
'[email protected]', /* From */
'[email protected]', /* To */
'Error Message Detected', /* Subject */
'An error occurred: ' $ encodeentities(l.error)
)
" />
</mvt:foreach>
<!-- Display the error on the page -->
<b>&mvt:error;</b>
<!-- Send an email for any error -->
<mvt:do file="g.Module_Library_Utilities" name="l.ok" value="
SendEmail(
'[email protected]', /* From */
'[email protected]', /* To */
'Error Message Detected', /* Subject */
'An error occurred: ' $ encodeentities(l.error)
)
" />
</mvt:foreach>
Comment