title: Sending email to all the email adresses in gridview which are checked
body: <p>I have a grid view control in my application.</p>
  
  <p>Please see the below code.</p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="CPUserID" DataSourceID="GetSelectDelegatesDataSource"&gt;
  &lt;Columns&gt;
  &lt;asp:BoundField HeaderStyle-CssClass="gridview_header" HeaderStyle-ForeColor="White" Visible="false" DataField="EmailAddress" HeaderText="Email Address" SortExpression="EmailAddress"&gt;
  
  &lt;HeaderStyle CssClass="gridview_header" ForeColor="White"&gt;&lt;/HeaderStyle&gt;
  &lt;/asp:BoundField&gt;
  
  &lt;asp:TemplateField HeaderText="Select"&gt;
  
  &lt;HeaderTemplate&gt;                                    
  &lt;input id="masterCheck" type="checkbox" /&gt;                                
  &lt;/HeaderTemplate&gt;                                
  &lt;ItemTemplate&gt;                                    
  &lt;asp:CheckBox runat="server" ID="chkSelect" /&gt;                                
  &lt;/ItemTemplate&gt;                                
  &lt;HeaderStyle CssClass="gridview_header" ForeColor="White"&gt;&lt;/HeaderStyle&gt;
  
  &lt;/asp:TemplateField&gt;
  &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>And I have a image button</p>
  
  <pre><code>&lt;asp:ImageButton ID="ibtnSendInvites" Visible="false" runat="server" ImageUrl="~/images1/send_button.png" /&gt;
  </code></pre>
  
  <p>If you see above code you can find that there is check box functionality in my gridview. I have email address boundfield in my gridview. I want to send an email to the email addresses which are been checked in gridview.</p>
  
  <p>Please provide the vb.net code for the same </p>