I am trying to make a registration form that when a user enters in their information and clicks the submit button the information will go to someone's email. If someone could send me a website with tutorial on this or lead me in the right direction that would be great!


**I would show you the code I have but it is all edited in my html and it doesn't really relate, but if you need more information let me know.**

After Clicking Submit Button

using System.Net.Mail;

                    string datatosend= " Name : "+textBox1.Text+"\n Age :"+textBox2.Text;

                    SmtpClient c = new SmtpClient();

                    c.DeliveryMethod = SmtpDeliveryMethod.Network;
                    c.Host = "localhost";//Or Your SMTP Server's Host IP

                    c.Port = 25;

                    MailAddress from = new MailAddress("your_mail_box@user.com");

                    MailAddress to = new MailAddress("address_given_by_user@user.com");

                    MailMessage mymessage = new MailMessage(from, to);

                    mymessage.Subject = datatosend;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.