Gmail api sent mails having header Received: from named unknown and being marked as spam
Mails i am sending to the gmail api end point have the following header which marks them as dangerous(I’ve tested sending mails manually with the exact same content and this is the only difference i found between them):