This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi all, This should be a simple one for you JavaMail Pros. I have this application using JavaMail to send out emails (Purchase Orders, Invoices etc) and its working fine with Exchange Server. At the same time, when I configured (I thought I did) it to send mails using Notes Server, its throwing Connection Exception: Connection Refused. Here is the trace: [ERROR] Connection refused; nested exception is: java.net.ConnectException: Connection refused javax.mail.MessagingException: Connection refused; nested exception is: java.net.ConnectException: Connection refused at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:298) at javax.mail.Service.connect(Service.java:234) at javax.mail.Service.connect(Service.java:135)
Notes server is running in a Solaris box, but it has SMTP service enabled and I already verified the availability of the server with sping and mconnect commands. Any thoughts? Thanks in advance! Ashok.
Looks like you're trying to connect to the IMAP store, and not the SMTP service. You could try telnetting onto your notes server, and doing a netstat -a and see if anything is listening on the IMAP port (143). L
I have no java certifications. This makes me a bad programmer. Ignore my post.
Joined: Oct 13, 2000
Thanks Lewin, I thought Lotus Notes works over IMAP by default and so IMAP service should be running by default!?! Anyway, I will re-check that. Cheers, Ashok.
Joined: Oct 13, 2000
Originally posted by Lewin Chan:
You could try telnetting onto your notes server, and doing a netstat -a and see if anything is listening on the IMAP port (143).
Notes server is listening on IMAP port (143). I tried connecting a number of ways (different combination of domain+username), but no luck! Sending a simple SMTP mail is working with out a glitch. Does any one has an example code of JavaMail actually connecting and fetching/sending mails using a Lotus Notes (Domino) Server? Thanks in advance! Ashok.