Hi Pirate,

Thanks a lot ,I tried by importing System.Web.Mail namespace It worked.

How to authentication username and password when sending SMTP mails?.