X_MAIL_LOCALE_MISSING
Means
send() was called without a locale
Typical cause
a JS caller, or a cast that dropped the required field
Fix
send(mail, data, { to, locale: ctx.locale })
send() was called without a locale
a JS caller, or a cast that dropped the required field
send(mail, data, { to, locale: ctx.locale })