private void btnSend_Click(object sender, System.EventArgs e) { MailMessage msg = new MailMessage(); msg.To = txtTo.Text; msg.From = txtFrom.Text; msg.Subject = txtSubject.Text; msg.Body = txtContent.Value; lblStatus.Text = "Sending..."; SmtpMail.Send(msg); lblStatus.Text = "Sent email (" + txtSubject.Text + ") to " +txtTo.Text; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)