Introduction
Now I will create two articles whose combination will create an interesting application, in other words send bulk mails using SMTP Configuration.
This is the first article of this two article series and in this article I will create an Excel Sheet in which more than 50 users data will be inserted, then this data will be shown in a grid.
We often need to send an email to multiple users, in those cases we forward the email again and again but using this application we can send the email to all the users available in an Excel Sheet by a single click.
Use the following procedure to create such an application.
Step 1
First of all I created an Excel Sheet in which I made some entries in two columns, in other words Email and Name.

I am sending all the mails to my other EmailId, you can send it to various Ids.
Step 2
Now I have created a new ASP.NET application in which a button, label and a Grid is used.
- <div>
- <asp:Button ID="king" runat="server" Text="Show all the Members" OnClick="king_Click" />
- <asp:Label ID="kinglbl" runat="server" Text="Total Members: "></asp:Label>
- <asp:Label ID="Label2" runat="server" ForeColor="Red" Font-Size="Larger"></asp:Label>
- <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="Both">
- <AlternatingRowStyle BackColor="White" />
- <EditRowStyle BackColor="#7C6F57" />
- <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
- <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
- <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
- <RowStyle BackColor="#E3EAEB" />
- <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
- <SortedAscendingCellStyle BackColor="#F8FAFA" />
- <SortedAscendingHeaderStyle BackColor="#246B61" />
- <SortedDescendingCellStyle BackColor="#D4DFE1" />
- <SortedDescendingHeaderStyle BackColor="#15524A" />
- </asp:GridView>
- </div>



Joseph MugumePosted Jun 24, 2014, 2:06 AM
which tool did you use to build the ASP.NET application?