If you have a non-library SendGrid issue, please contact our support team.
If you can't find a solution below, please open an issue.
When debugging or testing, it may be useful to examine the raw request body to compare against the documented format.
You can do this right before you call request.setBody(mail.build())
like so:
System.out.println(mail.build());