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(
"[email protected]",
"[email protected]",
"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
 
Top