• androidimg
  • phpimg
  • c++img
  • javaimg
  • netimg
  • Android Programming

    Android software development is the process by which new applications are created for the Android operating system. Applications are usually developed in the Java programming language using the Android Software Development Kit.

  • PHP Programming

    PHP is a server scripting language, and widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

  • C++ Programming

    C++ is one of the most popular object oriented programming languages and is implemented for both hardware and operating system platforms. C++ is also used for hardware design, where the design is initially described in C++, then analyzed, architecturally constrained, and scheduled to create a register-transfer level hardware description language via high-level synthesis.

  • Java Programming

    Java is an object-oriented language similar to C++, but simplified to eliminate language features that cause common programming errors. Java source code files are compiled into a format called bytecode.

  • .Net Programming

    Microsoft describes .NET as a set of software technologies for connecting information, people, systems, and devices. This new generation of technology is based on Web services-small building-block applications that can connect to each other as well as to other, larger applications over the Internet.

Wednesday 15 October 2014

Posted by Venika Emy
No comments | 09:30
Project Description: This project is used to send bulk mails without spamming to promote your products and services. You can send thousands mail using this tool, all mailing address stored in local database and bind with dataGridView data control. Mail marketing or bulk mailing tool send one by one mail and pick mail address for datagridview which import mail addresses from local database. Mail marketing project created in .net framework 3.5 using c sharp language.

Mail Marketing Windows Form Project in C Sharp

Features of Mail Marketing Project:
  • Send thousands of mail on one click.
  • DataGridView Control to bind database on runtime.
  • Used local database to store mail addresses.
  • Protected for mass mailing or spamming.
  • Easy to manage controls and database.
  • Secure app.config file.
download
ProSoureCode:

To Bind Database:
  private void Form1_Load(object sender, EventArgs e)
        {
            DataTable dT;
            BindingSource bS;

            using (SqlCeConnection con = new SqlCeConnection("Data Source=|DataDirectory|\\Database1.sdf"))
            {
                dT = new DataTable();
                bS = new BindingSource();
                string query = "SELECT * FROM mailinglist";
                SqlCeDataAdapter dA = new SqlCeDataAdapter(query, con);
                SqlCeCommandBuilder cBuilder = new SqlCeCommandBuilder(dA);
                dA.Fill(dT);
                bS.DataSource = dT;
                dataGridView1.DataSource = bS;
            }
           
        }

To Send Mails:
   private void button1_Click(object sender, EventArgs e)
        {
            foreach (DataGridViewRow row in this.dataGridView1.Rows)
            {

                var email = row.Cells[2].Value.ToString();
        try
        {
            SmtpClient client = new SmtpClient("smtp.gmail.com");
            client.Port = 587;
            client.EnableSsl = true;
            client.Timeout = 100000;
            client.DeliveryMethod = SmtpDeliveryMethod.Network;
            client.UseDefaultCredentials = false;
            client.Credentials = new NetworkCredential("your mail address", "your mail password");
            MailMessage msg = new MailMessage();
            msg.To.Add(email);
            msg.From = new MailAddress("your mail address");
            msg.Subject = textBox1.Text;
            msg.Body = richTextBox1.Text;
            client.Send(msg);
            MessageBox.Show("Successfully Sent Message.");
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
        }
   
            }
        }

    
      
    }

0 comments:

Post a Comment

About Us

We provide excellent programming solutions & supports in an easy ongoing development environment.
Sitemap