Posts

Showing posts from February, 2015

How to send Bulk Email to all recipients in a list or gridview using c#

Image
In this blog I am going to show how we could send Bulk Emails at a single click in c#. I Have taken just 4 records in gridview and sending mail to all the emailIds in the gridview in a single click
Added a gridview in which I have added few records with Name and their Email Ids. One button has been added which I am using to send mail to all the records having Email ids. Below is my code for sample, change according to your requirements.


1. First of all add below code in your .aspx page::
    <div>
            <asp:Panel ID="Panel1" runat="server" Width="100%" ScrollBars="Horizontal">
                <asp:GridView ID="gvCustomers" runat="server" AutoGenerateColumns="False" CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None">
                    <AlternatingRowStyle BackColor="White" />
                    <Colu…
go to top image