Home General

GMail OAuth2 BCC error

Hi!

When adding a BCC address, the GMail service reports an error:

Header: Cache-Control=private
Date=Tue, 02 Aug 2022 06:07:48 GMT
Transfer-Encoding=chunked
Content-Type=application/json; charset=UTF-8
Accept-Ranges=none
Server=ESF
Vary=X-Origin, Referer, Origin,Accept-Encoding
X-XSS-Protection=0
X-Frame-Options=SAMEORIGIN
X-Content-Type-Options=nosniff
Alt-Svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Content: {
"error": {
"code": 400,
"message": "Invalid Bcc header",
"errors": [
{
"message": "Invalid Bcc header",
"domain": "global",
"reason": "invalidArgument"
}
],
"status": "INVALID_ARGUMENT"
}
}

When not using the BCC address, sending works correctly.

The only change in the code (that produces the error) is this:

Report.EmailSettings.BlindCarbonCopy.Text := 'test@somewhere.com';

Comments

Sign In or Register to comment.