A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

working with System.Net.Mail namespace





 
 
Thread Tools Display Modes
  #1  
Old August 31st 07, 04:10 PM posted to microsoft.public.outlook.program_forms
rodchar
external usenet poster
 
Posts: 1
Default working with System.Net.Mail namespace

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

//Send the message.
SmtpClient client = new SmtpClient(server);
MailMessage message = new MailMessage(
",
",
"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
Ads
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NameSpace.GetItemFromID() threw an exception OctopusThu Add-ins for Outlook 2 December 15th 06 07:40 AM
My system shuts down when working in Word Legales1 Outlook - General Queries 1 May 27th 06 11:20 AM
nameSpace.OptionsPagesAdd Ralf Jansen Add-ins for Outlook 2 May 12th 06 04:01 PM
system delete sound heard when I am not working at my computer but it is left on... Yolanda Martin Outlook Express 3 April 26th 06 03:07 AM
GetItemFromID method on a public folder in the namespace Robert Squire Outlook and VBA 1 February 24th 06 02:31 PM


All times are GMT +1. The time now is 12:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Repair Bad Credit - Per Insurance - Loans - Loan - Refinance