MailMessage mlmsg = new MailMessage(); mlmsg.From = new MailAddress(this.txtFrom.Text); mlmsg.To.Add(this.txtTo.Text); mlmsg.Subject = txtSubject.Text; mlmsg.Body = this.richTextMSG.Text; SmtpClient Sclt = new SmtpClient(comboBox1.Text, 587); Sclt.Credentials = new NetworkCredential(txtFrom.Text, txtMdp.Text); Sclt.EnableSsl = true; Sclt.Send(mlmsg);