Author Topic: Gmail rewrites emails when sending through the service  (Read 480 times)

TracyP

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Gmail rewrites emails when sending through the service
« on: January 31, 2018, 12:50:36 PM »
using the Email object I get the mime text.
I then use OAuth2, AuthGoogle, JsonObject, Socket, and Rest to send that mime through the gmailapi for sending email.
(Socket is just being used to see things with Fiddler)

The text/plain is completely rewritten, and the boundaries are changed. The message-id's remain the same.

What I see in Sent of the gmail account is:
Quote
Message-Id: <CAFbkj38OBUjqv3GbNxtjHr5NPOTJubsaPVSzdR797pcnd5ERhQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------050101000705090601050400"

--------------050101000705090601050400
Content-Type: text/plain

Implausible
--------------050101000705090601050400
Content-Type: text/html

<html><head></head><body>Hello</body></html>
--------------050101000705090601050400--

What I see in the Inbox of the two recipients is:
Quote
Message-ID: <CAFbkj38OBUjqv3GbNxtjHr5NPOTJubsaPVSzdR797pcnd5ERhQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="f403045c3bb45327c00564159cd4"

--f403045c3bb45327c00564159cd4
Content-Type: text/plain; charset="UTF-8"

Hello

--f403045c3bb45327c00564159cd4
Content-Type: text/html; charset="UTF-8"

<html><head></head><body>Hello</body></html>

--f403045c3bb45327c00564159cd4--

This is more of an FYI post. I don't feel like there is anything that can be done.

Tracy