I have a little problem. I'm afraid I don't know where or how to begin.
My project: When I have a new e-mail in my Outlook mailbox with the subject "START" I want to execute a method.
In the following structure:
public void EmailNotification()
{
if (/* Check every 5 minutes as long as application is running for new mails in Outlook*/ || /*
subject contains the string "start" */){
AnyMethod();
}
}
public void AnyMethod()
{
// Do somethink
}
I hope my problem is clearly explained. I am still a relative beginner in C# and am happy for any help.
I am afraid that the exchange server, which I cannot control, is blocking something if I do it with IMAP (because of sercurity rules e.g. untrusted application) but for sure I can try it. Maybe it works.