I want to create a java program to connect to an outlook webmail server to check for unread emails. I am not looking for an open source java based email client etc.. etc..
I am basically asking if it is possible to create a Java interface to an Outlook Webmail Server. I have been trying to hunt down how I would even begin to do this and it isn't inherently clear. Thanks..
You can use WebDav interface before exchange 2007 or EWS (Exchange Web Services)in Exchange 2007+
EWS Reference - http://msdn.microsoft.com/en-us/library/bb204119.aspx
Also a blog that may start u off with webdav
http://blogs.msdn.com/dotnetinterop/archive/2008/07/21/connecting-java-to-exchange-over-webdav-with-apache-httpclient.aspx
You could also try to have a look at the free exchange clients. Maybe you'll find informations regarding the protocol there.
Apache is developing a API for it Apache POI using which u easily can connect to outlook....
Related
How can I extract extract emails and attachments using an API from a SMTP (Mail) server?
I was trying to figure out how Posterous worked. I found this open source project but it had no source code.
https://code.google.com/p/os-posterous/
The scope of your question is a little too broad, but yes, there are many APIs available for extracting email content and attachments. It is actually pretty simple to do in most programming languages (though javascript has nothing to do with this). You could look at MailGun, AWS Simple Mail just to name a couple or you could roll your own. You don't need to create an SMTP server for this, just access an email address programmatically, scan the contents of new messages and perform some logic on the content/attachments/etc.
Python: http://docs.python.org/2/library/imaplib.html
PHP: http://us2.php.net/imap
Ruby: http://www.ruby-doc.org/stdlib-2.0.0/libdoc/net/imap/rdoc/Net/IMAP.html
Java: https://javamail.java.net/nonav/docs/api/com/sun/mail/imap/IMAPStore.html
For Posterous I wrote a service in Java which connected to a mail server over IMAP and parsed incoming emails, attachments, etc. The JavaMail framework makes it super simple to do this.
How to get DL (distribution List) from Microsoft Exchange Server via EWS in Java?
I have tried EWS Java API but could not find list of Distribution List(GAL) of exchange server, any help regarding to this API or any other would be appreciated.
The GAL is not directly supported. You can use the ResolveNames method to resolve individual names. To perform a search on the GAL, you need to use LDAP. See http://www.infinitec.de/post/2005/02/How-to-get-the-Global-Address-List-programatically.aspx.
Take a look on JIntegra. I remember that they support of MS Exchange. Probably some API exists. Good luck.
You can use LDAP if you have access to that. Or PowerShell. But Henning is right EWS itself has pretty limited stuff here.
I want to access my enterprise outlook account mounted on a server using java program.. already tried JAMES.. but it does not look to be the right option.. any suggestions (using java)
Did you try the JavaMail API? It has different options to connect to an Exchange server:
http://java.sun.com/products/javamail/Third_Party.html
Is anyone aware of a way to retrieve and send mails by talking directly to the GroupWise server.
I want to be able to retrieve mail using Java if possible.
I wrote a Outlook Plug-In that retrieved mail out of GroupWise via the Groupwise Outloop Plug-in (If that makes sense).
Then dropped the message in a directory where I retrieved it with a Java App.
The problem is that I cannot add more than one GroupWise account in Outlook and need to.
I had a look at this question, but would like to know if there is a Java API
that will allow me to retrieve/send mail from the GroupWise server in a JavaMail like manner.
Thanks.
GroupWise allows mails to be retrieved using IMAP and POP3 which are standard supported by JavaMail. (And outlook too for that matter)
Sending mail should also be possible using smtp.
If it is for plain email I prefer to use these basic proptocols like smtp, pop3 and imap because they work almost everywhere, anytime and on any platform. They are less feature rich than the proprietary protocols, but that point is often not very relevant since many of these features are only meaningful for a subset of the mailclients out there.
What all language components will have to be used for implementing an email service system using java?
If you want to implement an email server (SMTP, IMAP, POP3) - there is already Apache JAMES. It's open-source, so you can look into its sources if you insist on making one.
If you want to just send emails, having an already installed SMTP server, then use Simple Java Mail or commons-email. Both sit on top of Jakarta Mail (previously JavaMail) and are very developer-friendly.
for SMTP subethasmtp rocks
Maybe look at Apache JAMES.
The Apache JAMES Project delivers a rich set of open source modules and libraries, written in Java, related to internet mail and news which build into an advanced enterprise mail server.