Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
GeneralRe: convert fro, .wav to g.711 to push sound file in cisco telephone Pin
zumty19-Aug-08 1:06
zumty19-Aug-08 1:06 
QuestionRequest.QueryString Clear Pin
Agweet18-Aug-08 23:15
Agweet18-Aug-08 23:15 
AnswerRe: Request.QueryString Clear Pin
AhsanS18-Aug-08 23:24
AhsanS18-Aug-08 23:24 
GeneralRe: Request.QueryString Clear Pin
Agweet18-Aug-08 23:31
Agweet18-Aug-08 23:31 
GeneralRe: Request.QueryString Clear Pin
AhsanS18-Aug-08 23:38
AhsanS18-Aug-08 23:38 
AnswerRe: Request.QueryString Clear Pin
Jim Brooks25-Jun-09 10:33
Jim Brooks25-Jun-09 10:33 
QuestionRead Mail from Exchange Mail Server Pin
Programm3r18-Aug-08 23:09
Programm3r18-Aug-08 23:09 
QuestionRe: Read Mail from Exchange Mail Server Pin
Programm3r19-Aug-08 0:02
Programm3r19-Aug-08 0:02 
Ok, got the following code but, is there a way to stop MS Office asking the whole time for permission ??? Confused | :confused: Confused | :confused:

// Create Outlook application
Microsoft.Office.Interop.Outlook.Application OL = new Microsoft.Office.Interop.Outlook.Application();

// Get Mapi NameSpace.
Microsoft.Office.Interop.Outlook.NameSpace oNS = OL.GetNamespace("mapi");
OL.Session.Logon("...", "...", false, true);

// Get Messages collection of Inbox.
Microsoft.Office.Interop.Outlook.MAPIFolder oInbox = oNS.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox);
Microsoft.Office.Interop.Outlook.Items oItems = oInbox.Items;

// Get unread e-mail messages.
oItems = oItems.Restrict("[Unread] = true");

// Loop each unread message.
Microsoft.Office.Interop.Outlook.MailItem oMsg;
int i = 1;

for (i = 1; i <= oItems.Count; i++)
{
    oMsg = (oItems[i] as Microsoft.Office.Interop.Outlook.MailItem);
    Console.WriteLine(i);
    Console.WriteLine(oMsg.SenderName);
    Console.WriteLine(oMsg.Subject);
    Console.WriteLine(oMsg.ReceivedTime);
    Console.WriteLine(oMsg.Body);
    Console.WriteLine("---------------------------");
    Console.WriteLine("press any key to continue");
}

oNS.Logoff();

OL = null;
oNS = null;
oItems = null;
oMsg = null;




The only programmers that are better that C programmers are those who code in 1's and 0's Green Alien | [Alien]


Smile | :) Programm3r

My Blog: ^_^

Questionstructure to binary file Pin
kk.tvm18-Aug-08 22:54
kk.tvm18-Aug-08 22:54 
AnswerRe: structure to binary file Pin
CPallini18-Aug-08 23:02
mveCPallini18-Aug-08 23:02 
AnswerRe: structure to binary file Pin
AhsanS18-Aug-08 23:15
AhsanS18-Aug-08 23:15 
Questioninstallation Pin
arkiboys18-Aug-08 22:52
arkiboys18-Aug-08 22:52 
AnswerRe: installation Pin
AhsanS18-Aug-08 23:16
AhsanS18-Aug-08 23:16 
AnswerRe: installation Pin
Csharp_Raja19-Aug-08 1:31
Csharp_Raja19-Aug-08 1:31 
Questionpath Pin
arkiboys18-Aug-08 22:03
arkiboys18-Aug-08 22:03 
AnswerRe: path Pin
Natza Mitzi18-Aug-08 22:29
Natza Mitzi18-Aug-08 22:29 
GeneralRe: path Pin
Manas Bhardwaj18-Aug-08 22:31
professionalManas Bhardwaj18-Aug-08 22:31 
GeneralRe: path Pin
arkiboys18-Aug-08 22:34
arkiboys18-Aug-08 22:34 
GeneralRe: path Pin
AhsanS18-Aug-08 23:22
AhsanS18-Aug-08 23:22 
QuestionNetflow version 5 date field Pin
Stephen Lintott18-Aug-08 21:52
Stephen Lintott18-Aug-08 21:52 
AnswerRe: Netflow version 5 date field Pin
leppie18-Aug-08 22:05
leppie18-Aug-08 22:05 
GeneralRe: Netflow version 5 date field Pin
Stephen Lintott18-Aug-08 22:18
Stephen Lintott18-Aug-08 22:18 
GeneralRe: Netflow version 5 date field Pin
leppie18-Aug-08 22:21
leppie18-Aug-08 22:21 
GeneralRe: Netflow version 5 date field Pin
Stephen Lintott18-Aug-08 22:26
Stephen Lintott18-Aug-08 22:26 
GeneralRe: Netflow version 5 date field Pin
leppie18-Aug-08 22:30
leppie18-Aug-08 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.