aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Enable Mailing services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Enable Mailing services" Watch "Enable Mailing services" New topic
Author

Enable Mailing services

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

My task is to initiate a mail system within the organization.The beneficiaries are keyed in by the users.
I don't know anything about it. Please help me out for it.

Thanks
kaustubh : )


No Kaustubh No Fun, Know Kaustubh Know Fun..
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I'd start by putting together a requirements document. Once you have that, you can check which pieces are already in place in your organization, and what's still missing.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

What
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10033
    
163

Kaustubh G Sharma wrote:What


To put in more simpler terms, collect a list of requirements that are expected of the "mail system" and then try to figure out which of those requirements are already available in whichever tool (if any) your organization uses.


[My Blog] [JavaRanch Journal]
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
http://en.wikipedia.org/wiki/Product_requirements_document
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270






exception I am getting is...

mex = (javax.mail.MessagingException)javax.mail.MessagingException:Exception reading repsonse

nested exception is"
java.net.soketException: connection reset
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)




how to solve it??
Jagadeeswara Yaramala
Ranch Hand

Joined: Jul 28, 2010
Posts: 46
There seems to be many errors in your code.

For a working code example (using Gmail SMTP), please see this thread.
Gmail send (The message posted by pradeep singh).

I tested the code in the above thread and it is working.

HTH
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

your code is not working.... got following exception

Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
That's not the way to connect to Gmail via JavaMail. See the JavaEnterpriseEditionFaq for a FAQ entry regarding this. Pay particular attention to the details.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

what if i want to connect my office mail server???
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

I am really stick with this issue...can someone help me out with this..
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
It's been a week, so you must have tried a lot, including the code I pointed you to; what exactly happened when you did that? Post the code you're now using that you think should work.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Actually I was concentrating on some other work so not find time on that...But also not get any help from websites and this thread ..I am getting some codes everytime but it never worked always get the exception as I mentioned above...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enable Mailing services