Mail.SmtpMail.SmtpServer = "xyz.com" Is oblsolete

M

moondaddy

I converted a v.net 1.1 project from 1.1 to 2.0 and this was one of my
warning messages. It advised me to change to
System.Net.Mail.SmtpClient, however, I don't see how to assign a mail server
using this new library.

Here's the warning msg:

Warning 104 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended
alternative is System.Net.Mail.SmtpClient.
http://go.microsoft.com/fwlink/?linkid=14202' D:\Apps\Utilities\Utilites.vb
274 13 Utilities


also, do you know of any good code examples of how to create and send mail
using vb.net 2.0?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top