send e-mail from project
-
:)dear all when i wrot this code on my project: private void btnsend_Click(object sender, System.EventArgs e) { SmtpMail.Send("someone@microsoft.com", "minyawy@hotmail.com", "Subjectline", "Message text."); } OR private void btnsend_Click(object sender, System.EventArgs e) { MailMessage mailNew = new MailMessage(); mailNew.From="mahmoudko_fcis@hotmail"; mailNew.To="minyawy@hotmail.com"; mailNew.Subject="a comment about the site from"; mailNew.Body=txtComment.Text; SmtpMail.Send(mailNew); } there is now result please send me the solution thanks for all:)
-
:)dear all when i wrot this code on my project: private void btnsend_Click(object sender, System.EventArgs e) { SmtpMail.Send("someone@microsoft.com", "minyawy@hotmail.com", "Subjectline", "Message text."); } OR private void btnsend_Click(object sender, System.EventArgs e) { MailMessage mailNew = new MailMessage(); mailNew.From="mahmoudko_fcis@hotmail"; mailNew.To="minyawy@hotmail.com"; mailNew.Subject="a comment about the site from"; mailNew.Body=txtComment.Text; SmtpMail.Send(mailNew); } there is now result please send me the solution thanks for all:)