Gmail API-不发送带引号的文本/普通电子邮件

时间:2019-03-25 22:24:55

标签: email gmail gmail-api

几天来,我一直在尝试使用Gmail API发送文本/纯电子邮件,并且总是添加换行符。我已经尝试了本文Gmail API - plaintext word wrapping中的答案,但仍然无法正常工作。

我发送此文本:

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.

但是,它总是以Content-Transfer-Encoding: 7bit的形式出现在我的任务栏中,并且有令人讨厌的换行符。

如果我不使用Gmail API作为SMTP发送邮件,则会显示为 Content-Transfer-Encoding: quoted-printable正确,没有换行符。

请,有人找到解决方案了吗?

0 个答案:

没有答案