Closed bitwit closed 3 years ago
It will be something to do with the contents of the raw email. It is probably missing a header, or a header is malformed. How are you generating this email?
I guess you'll need to look through your email and the rfc5322.
Here is an example of raw email sending working https://github.com/adam-fowler/ses-forwarder-lambda/blob/main/Sources/SESForwarder/main.swift. It takes emails sent to a SES managed domain and forwards them onto another email.
Thank you! I think I have misinterpreted raw email to mean plain-text email. This makes a lot of sense.
I'm trying to send a raw email and while it successfully sends, Google is rejecting me due to compliance problems. The Soto API clearly works 🙏, but I can't figure out how to resolve this problem with google given the available parameters.
My code looks like this inside of my own SESManager class:
Google mailer-daemon rejects it back to the sender with