Geeks With Blogs
Shervin Shakibi's Blog blog August 2005 Entries
VS 2005 Create Email code snippet needs to be changed
I am working on VS 2005 website, I need to send an email so I tried the Insert “Code Snippet“ feature and it inserted: Dim email As New MailMessage() email.To = "RecipientAddress" email.From = "SenderAddress" email.Body = "MessageText" email.Subject = "SubjectText" email.BodyFormat = MailFormat.Text SmtpMail.SmtpServer = "SmtpServerName" SmtpMail.Send(email) but the designer gives you the following warning Warning 15 'System.Web.Mail.MailMessage' is obsolete: 'This class is deprecated. ......

Posted On Thursday, August 18, 2005 3:04 AM

Copyright © Shervin Shakibi | Powered by: