Skip to main content

Im sending an email with an attactment and i got this error.

does anyone have an idea on this error?

System.EmailException: SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, null argument for JSONGenerator.writeBooleanField(): []

1 answer
  1. Nov 23, 2021, 3:55 PM
    Hey Joy,

    Please add a null check before you pass a value to this JSONGenerator.writeBooleanField().
0/9000