private void btnSend_Click(object sender, System.EventArgs e) { string from = "dsteil@harding.edu"; string to = "dsteil@harding.edu"; string subject = "Ticket"; string body = "Body of message"; System.Web.Mail.SmtpMail.Send(from, to, subject, body); //to use the System.Web namespace you must reference //System.Web.dll }