Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Test imap connection

Eddie GApr 28 2016 — edited May 3 2016

I am trying to get our Siebel email response application to use imap instead of pop3.

The support analyst at Oracle told me to try this command line prompt.

java -Djava.class.path=".;D:\javamail\javamail-1.4.5\mail.jar;d:\siebel81sia\siebsrvr\BIN\JMailClient.jar"  com/siebel/scomm/emaildriver/JMailClient /u ingrnet/siebelmail/myusername /p mypassword /s mail.myserver.com /o 993 /r imaps

Here is the output...

MAIN... create JMailClient object

MAIN... created JMailClient object

MAIN... set connection parameter...

Setting connection parameters to client object...

::setting connection parameters::

protocol: imap

Use TLS: No

server: mail.myserver.com

port: 143

account: ingrnet/siebelmail/myusername

connection parameters set to client object.

MAIN... connection param set, call connect...

connecting to the email server...

connection timeout set: 10(seconds), 10000(milliseconds)

get session instance

getting  store object

calling connect...

getting message count from email server inbox folder...

Cannot complete operation. JMail client in invalid state!

closing connection to email server

close mail store object...

closing mail store object.

Closed connection to email server

...end of output

Is there a parameter that would change the output to say "Use TLS: Yes"?

I tried adding -Dmail.imap.starttls.enable="true".

Thanks,

Eddie

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2016
Added on Apr 28 2016
9 comments
3,641 views