Sendgrid-python: Mail received with email subject without mail body

Created on 1 Jan 2017  路  4Comments  路  Source: sendgrid/sendgrid-python

Issue Summary

I sent around 1400 mail to users using sendgrid==3.6.3 lib. I have sent grid premium account.
I received 202 from sendgrid server. But all user received only email subject without email body.
Then after I tried to send email from my local machine using the same script then I got an email with email body. So, I am missing something over here or not. I can't understand the real reason behind it.
I am using django framework.

Steps to Reproduce

Above case happened in the production environment. So I can't execute the same script again until I am not confident.

Below is my sendgrid import statement.

import sendgrid
from sendgrid.helpers.mail import Email, Content, Substitution, Mail
try:
   # Python 3
   import urllib.request as urllib
except ImportError:
   # Python 2
   import urllib2 as urllib

Technical details:

  • sendgrid version==3.6.3
  • Python Version: 2.7
question

Most helpful comment

Yes, Issue has been resolved.

All 4 comments

I am facing this issue in iphone gmail application only. Other browser or application showing in form of clipped message. I found that gmail agent converts email body to clipped message If email body greater than 102 KB(only HTML code not image and other static media).

@sohamnavadiya,

Thanks for the update. Does this mean your issue is resolved? Is there anything else I can help with?

Thanks!

Yes, Issue has been resolved.

@sohamnavadiya, what resolved your issue?
I'm using python 3.8 and I can't get html or plain text body to get sent.

Was this page helpful?
0 / 5 - 0 ratings