# X_MAIL_TRANSFORM_FAILED

## Means

the app mail transform threw or returned no message

## Typical cause

the transform hook failed, so the mail was not sent (never sent untransformed)

## Fix

fix the function passed to setMailTransform() — it must return { subject, html, text } strings for every mail it is handed

[Mail](/error-codes#mail)
