perfectpoint
Junior Member
- Sep 21, 2010
- 197
- 94
I am using windows application i want to know how can I send email using windows application of c#, can anyone help me regarding this?
lol its very easy ! bro search google u can find chilcat component to do all the web work for you !
Here you go.
// create mail message object
MailMessage mail = new MailMessage();
mail.From = ""; // put the from address here
mail.To = ""; // put to address here
mail.Subject = ""; // put subject here
mail.Body = ""; // put body of email here
SmtpMail.SmtpServer = ""; // put smtp server you will use here
// and then send the mail
SmtpMail.Send(mail);
MailMessage mail = new MailMessage();
mail.To.Add(recip);
MailAddress mailAddress = new MailAddress("[email protected]");
mail.From = mailAddress;
mail.ReplyTo = mailAddress;