hi,
I'm new to software developing.....c#.
i am doing a project in c#.I have tried a code to send an email from my software.but i didn't find any sources...Please help me..
Also,Please help me to open a web browser from my project...
Anyway, Thanks for advance..:$

Use the SmtpClient and MailMessage classes:

public static SmtpClient GetSmtpClient()
    {
      SmtpClient smtp = new SmtpClient("smtp.server.com");
      if (WebConfigurationVariables.SMTPUseAuth)
      {
        smtp.Credentials = new NetworkCredential("username", "password");
      }
      return smtp;
    }

    protected void ButtonSubmit_Click(object sender, EventArgs e)
    {
      if (IsValid)
      {
        List<string> Sql = new List<string>();
        Sql.Add("Message:");
        Sql.Add(TextBoxMessage.Text);

        try
        {
          SmtpClient smtp = GetSmtpClient();
          using (MailMessage msg = new MailMessage())
          {
            msg.From = new MailAddress("feedback@______.com", "Online Feedback");
            msg.Sender = new MailAddress("feedback@______.com", "Online Feedback");
            msg.To.Add(new MailAddress(WebConfigurationVariables.FeedbackEmail));
            msg.Subject = "Feedback from www.______.com";
            msg.Body = "your message body here";
            msg.IsBodyHtml = false;
            msg.ReplyTo = new MailAddress("noreply@______", "No Reply");
            smtp.Send(msg);
          }
        }
        catch (Exception ex)
        {
          Log.Exception(ex, Request);
        }
      }
    }
This article has been dead for over six months. Start a new discussion instead.