AWS SES / AWS Lambda mail receiver endpoint code?

even if I decode to plain text and recode to base64 I still get the warning and the email does not show up as received :roll_eyes:

      const en_package = {
      headers: DISCOURSE_API_HEADERS,
      json: {encoded_email: Buffer.from(body.toString(),'base64') }
    }
   
   console.log(Buffer.from(body.toString(),'base64'))
   const res = await rest.post(DISCOURSE_URL,en_package)

once again if I sent plain text with “emal” the same message is received and processed.

You keep saying “strict” does that mean anything? Nodejs/JS has only two base64 flavors “base64” base64url".

Why does api keep giving the warning if I use encoded_email even if I have an error in encoding.

1 Like