Sendgrid-nodejs: Can't see how to send a plain text only email

Created on 18 Nov 2017  Â·  9Comments  Â·  Source: sendgrid/sendgrid-nodejs

Issue Summary

I can't see any docs to say how to send a plain text only email. My guess was to simply to fill in the text property of the message, and not the html. However when I do this, Sendgrid automatically also sends an html version of my email. In this version the newlines are stripped out. How do I just send plain text?

Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?

Technical details:

help wanted question

All 9 comments

OK so I found the account setting which autoconverts to html, which is default to on:

https://sendgrid.com/docs/User_Guide/Settings/mail.html#-Plain-Content

I found this to be an unexpected default, and would be useful to be linked from more of the docs eg here in the client docs, and this page that comes up in google for plain text that doesnt mention it

Hello @joelanman,

Thanks for taking some time to share feedback with us, it is greatly appreciated!

We send both HTML and text because this helps improve your email deliverability. One of the items some SPAM filters looks at is whether you have both text and HTML versions of your email.

With Best Regards,

Elmer

@thinkingserious thats not cool, i am using a parsing system that requires text format only, now it doesn't work

Hello @elpaso2,

What version of the SDK are you using?

not cool at all, not everyone need the html, i also send to parsing system, spent days before knowing its not my code

version "sendgrid/sendgrid": "~7",

Following, also looking for this setting for a user who's requested non-HTML emails

there’s a way in Mail Settings to enable plain only globally (see below).
If you have more questions, I'd recommend pinging our support team @
https://support.sendgrid.com

https://app.sendgrid.com/settings/mail_settings

You want to disable:

Plain Content
: Convert your plain text emails to HTML.

On Tue, Oct 9, 2018 at 11:04 AM Pam Selle notifications@github.com wrote:

Following, also looking for this setting for a user who's requested
non-HTML emails

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sendgrid/sendgrid-nodejs/issues/623#issuecomment-428271939,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACL-snZRDsOxTPGLqbrhRq_6UcndJK9nks5ujNcrgaJpZM4Qi9Jk
.

Hi @pselle, @elpaso2,

You should also be able to do something like this, but simply leave off the html parameter.

With Best Regards,

Elmer

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agostonbonomi picture agostonbonomi  Â·  3Comments

Chrischuck picture Chrischuck  Â·  3Comments

TobiahRex picture TobiahRex  Â·  3Comments

murphman300 picture murphman300  Â·  4Comments

thinkingserious picture thinkingserious  Â·  4Comments