title: Django: adding cc in email with sengrid returns HTTP Error 400: Bad Request
body: <p>I am following <a href="https://sendgrid.com/docs/for-developers/sending-email/personalizations/" rel="nofollow noreferrer">this link</a> to send emails from Django using SendGrid. If my email address in <strong>cc</strong> and <strong>to_email</strong> is same, it returns <strong>HTTP Error 400: Bad Request</strong>. But it works fine if the email address is different. Did anyone solve this problem before? I need to add cc while sending an email from Django whether the email address is the same or different. Thanks in advance.</p>
  <pre><code>sg = SendGridAPIClient(development.EMAIL_HOST_PASSWORD)
  cc_email = str(ImagingCenter.objects.get(institute_id=user.center_id).email)
  from_email = development.DEFAULT_FROM_EMAIL
  to_email = to_email
  data = {
           &quot;personalizations&quot;: [{
                          &quot;to&quot;: [{
                              &quot;email&quot;: to_email
                          }],
                          &quot;cc&quot;: [
                              {
                                  &quot;email&quot;: cc_email
                              }
                          ],
                          &quot;subject&quot;: &quot;CC Email Testing&quot;
                      }
                  ],
                  &quot;from&quot;: {
                      &quot;email&quot;: from_email
                  },
                  &quot;content&quot;: [
                      {
                          &quot;type&quot;: &quot;text/html&quot;,
                          &quot;value&quot;: html_message
                      }
                  ]
              }
              response = sg.client.mail.send.post(request_body=data)
  </code></pre>