I've been trying to send a text / plain email using the Gmail API for days and it always adds line breaks. I have tried the answer in this post Gmail API - plaintext word wrapping and it still does not work.
I send this text:
From: Example Account <example1@example.com>
To: <example2@example.com>
Content-Type: text / plain; charset = UTF-8
Content-Transfer-Encoding: quoted-printable
Subject: This is a test!
Here is a long test message that will probably cause some words to wrap in =
strange places.
However, it always comes to my tray as Content-Transfer-Encoding: 7bit
and with annoying line breaks.
If I send it without the Gmail API as SMTP it comes as
Content-Transfer-Encoding: quoted-printable
correctly without line breaks.
Please, has anyone found a solution?