Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

using SMTP protocol to GET emails

Posted on 2004-09-23
3
Medium Priority
?
225 Views
Last Modified: 2010-04-01
Hi,
I am writing a JSP where I need to GET (not SEND) emails. The proper way of doing this is to create a store object such as:  
Store mstore = msession.getStore("pop3");
Here it will take a protocol such as "pop3" or "imap" as its argument but not "smtp".  The problem is that I need to use the "smtp" protocol because this is what is being used within our facility to GET emails as well as to SEND them. This protocol is typically correct for SENDING but not for GETTING emails. Our network administrator has the IMAP and POP3 protocols turned off on the Microsoft Exchange server and he will not allow any changes here that may effect our emails. The problem is that the getStore function will not accept "smtp" as it is not a typical store protocol argument. This function will accept a full url as oppose to just the protocol. However, when trying to use a full url (URLName object) I still run into the same problem if "smtp" is the protocol.  I have also tried just about everything with the setting of the properties in my program. Still no success. How do I create a store object in my program so I can connect with an "smtp" protocol to GET emails?
                Thanks, Don
0
Comment
Question by:donfmurphy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12137018
by RFC SMTP protocol can't be used to get mails !!!!
POP3 and IMAP can be used to get emails. (or you can use Microdoft API to exchange server ).
What do you mean by: "I need to use the "smtp" protocol because this is what is being used within our facility to GET emails as well as to SEND them" ??
Which program do you use to get emails ???
0
 

Author Comment

by:donfmurphy
ID: 12137511
Hi Ramazanyich,
I access a Microsoft Exchange server to get my emails using Microsoft Outlook. Now I need to do this in a JSP.  I cannot connect here with POP3 or IMAP. So what protocol would I use  that getStore() would accept as an argument?
              Thanks, Don
 
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 1000 total points
ID: 12137648
Microsoft Outlook uses Microsoft's  API to access mail storage of Microsoft Exchange sever.
I don't know freeware Java API to access it.
I have found commersial JAVA API to Microsoft Exchange server
http://j-integra.intrinsyc.com/exchange/info/
It canbe used with standard JavaMail API.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An overview of cyber security, cyber crime, and personal protection against hackers. Includes a brief summary of the Equifax breach and why everyone should be aware of it. Other subjects include: how cyber security has failed to advance with technol…
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Loops Section Overview
Suggested Courses

610 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