working with System.Net.Mail namespace

R

rodchar

hey all,
i found the following code snippet in msdn:

//Send the message.
SmtpClient client = new SmtpClient(server);
MailMessage message = new MailMessage(
"(e-mail address removed)",
"(e-mail address removed)",
"Quarterly data report.",
"See the attached spreadsheet.");
client.Credentials = CredentialCache.DefaultNetworkCredentials;
client.Send(message);

i'm using vs2005 and outlook/exchange 2003 and when i try to build this i
get a runtime error saying the CredentialCache does not exist.

any ideas? is there a way to prompt me for them or say that their missing or
something like that?

thanks,
rodchar
 

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