By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 915 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Authentication for SMTP Server using system.web.mail

P: n/a
I'm trying to use system.web.mail to send an email, but the smtp
requires authentication. I came across some info about fields

Dim mail As New MailMessage()
mail.To = "
mail.From = "fr**"
mail.Subject = "this is a test email."
mail.Body = "Some text goes here"

cate", "1") 'basic authentication

", "username") 'set your username here

", "password") 'set your password here
SmtpMail.SmtpServer = "" 'your real server goes here
I get a compilation error:

'Fields' is not a member of 'System.Web.Mail.MailMessage'

Even though I have installed .Net Framework 1.1, i am not able to
compile the code. Can anybody help me on this.
Thanks in advance.
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.