You can use the System.Web.Mail.MailMessage class to do this.
VB Dim message As New MailMessage("orders@msft.com", "to@msft.com", "Order Confirmation", "Your order is confirmed") Dim emailClient As New SmtpClient("smtp.msft.com") emailClient.Send(message)
C# System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage("orders@msft.com", "to@msft.com", "Order Confirmation", "Your order is confirmed"); System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.msft.com"); mailClient.Send(message);
You'll need to put in your email vendor's SMTP server. In some cases you may need security credentials as well, so you can call "mailClient.Credentials" to set the user name and password.
Send E-mail in VWD Express
Radi Naydenov
You can use the System.Web.Mail.MailMessage class to do this.
VB
Dim message As New MailMessage("orders@msft.com", "to@msft.com", "Order Confirmation", "Your order is confirmed")
Dim emailClient As New SmtpClient("smtp.msft.com")
emailClient.Send(message)
C#
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage("orders@msft.com", "to@msft.com", "Order Confirmation", "Your order is confirmed");
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.msft.com");
mailClient.Send(message);
You'll need to put in your email vendor's SMTP server. In some cases you may need security credentials as well, so you can call "mailClient.Credentials" to set the user name and password.
Hope this helps,
Thanks,
Dan Fernandez
Product Manager
Visual Studio Express
http://blogs.msdn.com/danielfe