I Assume you are sending mail via a smtp client of your language programatically, I think the problem is for the mail client to process jsonld, the would require mail with DKIM or SPF authentication even for self-testing. Normally the mail sent from even gmail to gmail would ignore those headers. I suggest you send mail from register domain, which would have those authentication or send it from google testing tool AppScript