I'm trying to create a custom "from" send-as alias (sendAsEmail) with Gmail API and Google Admin: https://developers.google.com/gmail/api/reference/rest/v1/users.settings.sendAs/create
I'm getting a 400 error with sendAsEmail is not a valid user or group
.
In Google Admin I have a 3 verified domains, all with MX properly registered with gmail services :
@domain-a.com is primary domain
@domain-b.com (not a domain alias)
@domain-c.com (not a domain alias)
user@domain-a.com
is a user, with no send-as alias defined.
When I create the sendAsEmail user@domain-b.com
, no issue. I can see it appears in gmail.
When I create the sendAsEmail user@domain-c.com
, it fails. I can not find out why. If I search for user@domain-c.com
in Google Admin to be sure if it is not a group, no result. Any help would be very welcomed.
I'm doing my api calls with PHP, but I dont thing that the issue is related with the language.