Solved

read email from exchange server with vb.net

Posted on 2010-11-16
9
2,126 Views
Last Modified: 2012-05-10
I am writing a vb.net application that reads emails from an exchange mailbox and sends back replies.  A previous version of this program in vb6 used ms outlook but I would prefer to drop outlook if possible.  I also do not want to use any third party dll's.

I do not mind if it uses smtop/pop3 or connects directly to exchange.
0
Comment
Question by:iepaul
9 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
I don't think you have much choice but to use a 3rd party. I use http://www.lesnikowski.com/mail/
0
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 250 total points
Comment Utility
If you're working with Exchange Server 2007 or later, you can connect with Exchange Web Services.

Here you can get more information:
http://msdn.microsoft.com/en-us/library/bb204119(EXCHG.80).aspx

Hope that helps.
0
 

Author Comment

by:iepaul
Comment Utility
Exchange web services looks like a good approach but I am haveing difficutly find easy to follow examples ideally in vb.net but c# would do as it can be converted.  I need to be able to do a few basic tasks
check is there is a new email
read the new email
delete the new email once read
send an email
have you seen any?
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:iepaul
Comment Utility
Thanks but those examples are using webdav and reading technet it looks like ews is the better way to go

WebDAV is used to develop messaging applications. WebDAV provides access to folders, items, and item properties in the Exchange store. WebDAV can remotely access Exchange. WebDAV is de-emphasized in Exchange 2007. We recommend that you develop new messaging applications using Exchange Web Services, and migrate existing applications when feasible.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
Comment Utility
0
 

Author Comment

by:iepaul
Comment Utility
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
The question asked here was very generic and links to many tutorials were pasted. The answer that the asker has referred to is for a different question,
0
 

Author Comment

by:iepaul
Comment Utility
codecruiser you are absolutely correct.  I was thinking about another issue while closing this question.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now