title: How to insert dynamic blocks of html inside SendGrid email?
body: <p>I'm using SendGrid web API v3. Trying to generate personalization object which includes many recipients. Each recipient has 1 email with data that related to current recipient (pass with substitutions)</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>personalizations: [{
         to: [{email: 'example@mail.com'}],
         subject: 'Hello, :name!',
         substitutions: {':name': 'John', ':info_section_html':'&lt;p&gt;Some useful block1&lt;/p&gt;&lt;p&gt;Some useful block2&lt;/p&gt;'}
      },
      {
         to: [{email: 'example@mail.com'}],
         subject: 'Hello, :name!',
         substitutions: {':name': 'John', ':info_section_html':'&lt;p&gt;Some useful block1&lt;/p&gt;&lt;p&gt;Some useful block2&lt;/p&gt;&lt;p&gt;Some useful block3&lt;/p&gt;&lt;p&gt;Some useful block4&lt;/p&gt;&lt;p&gt;Some useful block5&lt;/p&gt;&lt;p&gt;Some useful block6&lt;/p&gt;'}
      }
  ],
      from: {email: 'send@example.com'},
      content: [{type: 'text/html', value: 'Hello, :name! &lt;/br&gt; Here are your very usefull info&lt;/br&gt; :info_section_html'}]
  </code></pre>
  
  <p>When substitution: <code>info_section_html</code> has a lot of such blocks it crossed a limit of 10000 bytes. My blocks have a lot more HTML than in example. Each recipient can have a different number of blocks that's why I can't include them in content attribute.</p>
  
  <p>Also was thinking about sections attribute where I can pass HTML of my <code>info_section_html</code>. But can't pass array of data in substitution.</p>
  
  <p>Can someone please suggest how to overcome this?</p>