0

When emailing via Sendgrid SMTP from Gmail using https://www.mail-tester.com/ it reports SpamAssassin says "PP_MIME_FAKE_ASCII_TEXT MIME text/plain claims to be ASCII but isn't".

Sending the same content from the Gmail address via Gmail's SMTP servers to mail tester does not give this error.

What is going on? How do I fix this error?

Update 2021-03-07 Sendgrid say they require the "SMTP payload" sent from Gmail to their SMTP server. Any suggestions how I can get this?

Thanks

twiz911
  • 634
  • 1
  • 9
  • 18

1 Answers1

0

An email entity that claims to be 7bit text contains 8bit characters.

Maybe Google is fixing it for you and sendgrid isn’t.

Check the source of the email you are sending and compare it with what you receive from Google.

  • Thanks great idea. Are there any good online tools to check? And to clarify should I be checking it is of type ASCII or 7bit or 8bit? – twiz911 Feb 27 '21 at 07:56
  • What matters is that is the content is coherent with the declaration. If it says 7bit then it should not contain 8bit chars. You can read here about the encoding options in email: https://stackoverflow.com/questions/25710599/content-transfer-encoding-7bit-or-8-bit#28531705 – Rodolfo Saccani Feb 28 '21 at 09:04
  • That's great thanks! Do you have any suggestions how we check and try to remove any 8bit characters which sendgrid must either be not removing or adding? – twiz911 Mar 01 '21 at 12:06
  • How are you creating these emails? How are you sending them to sendgrid? – Rodolfo Saccani Mar 12 '21 at 23:16
  • Hi Rodolfo thanks for the reply. I'm using gmail to send to Sendgrid's SMTP server smtp.sendgrid.net using my API key. – twiz911 Mar 14 '21 at 06:49
  • Did you try to send and empty email? – Rodolfo Saccani Mar 14 '21 at 16:46
  • That's a great idea! – twiz911 Mar 24 '21 at 07:27