How I can send a mail in a asp.net c# application?

pjvgkxwf

New Member
Hi I want to send a email from a asp.net c# application and I write a method but it don't work :( \[code\] private void SendEmail() { MailMessage m = new MailMessage(); System.Net.Mail.SmtpClient sc = new System.Net.Mail.SmtpClient(); SmtpServer ss = new SmtpServer(SMTPSERVER); m.From = new System.Net.Mail.MailAddress("[email protected]"); m.To.Add("[email protected]"); m.Subject = "gastzugangtest"; m.Body = "test"; sc.Send(m); }\[/code\]
 
Back
Top