Article View: borland.public.jbuilder.java.api
Article #605Re: Opening Outlook E-mail
From: Shankar Unni
Date: Tue, 13 May 2003 16:48
Date: Tue, 13 May 2003 16:48
26 lines
2341 bytes
2341 bytes
Borland wrote: > Is there anyway of opening Microsoft Outlook E-mails from within a Java > Application. I have developed a CRM program and would like to integrate > e-mail. I am able to send/read e-mails using IP*Works beans & can shell to > Outlook using: Well, that's probably the wrong way to do it. Rather than drive an end-user mail client from your program, you should be talking directly to your exchange (or other mail) server. The best way to do this is to use the JavaMail API. Exchange has an IMAP and a POP connector available, so you can choose either one. POP is better if you want to use your application as the mail store (you download the messages from the exchange server and delete them from there). If you simply want to peek at the messages but leave them there, you would be better off using IMAP, though POP3 can be used for that, too (just leave the messages on the server after you're done). To send mail, use the JavaMail API to create a message (it can create MIME messages with attachments and all that jazz), and send it using SMTP by connecting to the SMTP connector of your Exchange server (or other SMTP server like sendmail or qmail). In both cases, you're using pure Java code with no native dependencies.
Technical Details
Message-ID:
<3ec121cc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ebf811e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,74290150e7ed291 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-05-13 09:56:02 PST Date: Tue, 13 May 2003 09:48:12 -0700 From: Shankar Unni <shankar@cotagesoft.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: Re: Opening Outlook E-mail References: <3ebf811e$1@newsgroups.borland.com> In-Reply-To: <3ebf811e$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 64.165.207.59 Message-ID: <3ec121cc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052844492 64.165.207.59 (13 May 2003 09:48:12 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail