When sending emails using the Gmail API, it puts hard line breaks in the body with a length of about 78 characters per line. A similar question about this can be found here .
How can I make this stop? I just want to send clear text emails through the API without line breaks. The current formatting looks awful, especially on mobile clients (tested in Gmail and iOS Mail applications).
I tried the following headers:
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Did I miss something?
EDIT: As suggested by Mr. Ribot, I also tried this with no luck:
Content-Type: mixed/alternative
EDIT 2: Here is the exact format of the message being sent (attempt with quoted-printableand without a header :
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!
Date: Tue, 18 Oct 2016 10:46:57 -GMT-07:00
Here is a long test message that will probably cause some words to wrap in strange places.
Base64, POST /gmail/v1/users/{my_account}/drafts/send?fields=id JSON:
{
"id": MSG_ID,
"message": {
"raw": BASE64_DATA
}
}