473,504 Members | 13,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

oll3i
679 Contributor
Expand|Select|Wrap|Line Numbers
  1. Properties props = System.getProperties();
  2.  
  3.  
  4.  
  5.             props.setProperty("mail.store.protocol", "imaps");
  6.  
  7. props.setProperty("mail.imaps.host", "mail.purcon.pl");
  8. props.setProperty("mail.imaps.port", "143");
  9. props.setProperty("mail.imaps.connectiontimeout", "5000");
  10. props.setProperty("mail.imaps.timeout", "5000");
  11.  
  12.  
  13.         try {
  14.             // Initialize JavaMail session with SMTP server.
  15.  
  16.  
  17.  
  18. Session session = Session.getDefaultInstance(props, null);
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                        store = session.getStore("imaps");
  25.             store.connect("host","username", "pass");
  26.  
I can not connect to imaps.
Please help.
Aug 20 '13 #1
2 3137
oll3i
679 Contributor
ok i found the solution
Aug 20 '13 #2
Rabbit
12,516 Recognized Expert Moderator MVP
Can you post your solution in case someone else runs into the same problem?
Aug 20 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
783
by: Thomas Tryde | last post by:
SqlConnection("connection-string to a database") If I have one web application using this connection-string then I will have up to 100 connections. If I on another computer have two web...
1
3054
by: Mansoor Azam | last post by:
We connect to a SQL 6.5 server (IP for example 202.64.213.11) on WIN NT using ODBC DSN and / or SQL Client (DB-LIB). Everthing was working fine then the some XP client machines (192.168.0.1 and...
6
676
by: Ian Davies | last post by:
Hello I have the following code to connect to mySQL database from VB6 ******************************************** Private Sub Form_Load() Dim conn As ADODB.Connection Set conn = New...
2
2450
by: the6campbells | last post by:
Vendors such as ORACLE document how they support the server being configured to provide dead connection detection. I see no documentation in the IBM manuals or support site notes that suggest that...
1
3658
by: PJ | last post by:
I'm getting an error message when posting information from my asp page to the database. This is the error message: DODB.Connection error '800a0e7c' Parameter object is improperly defined....
9
1421
by: Taishi | last post by:
ExecuteReader: Connection property has not been initialized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
3
13951
by: matt.delvecchio | last post by:
i saw a similar post from last year, but i didnt see any clear solution. the error message: "A connection was successfully established with the server, but then an error occurred during the...
1
1629
by: =?Utf-8?B?TWVuYWth?= | last post by:
i have developed a web application for intranet and it is installed on the Computer name 'Server' and its already installed sql server 2005, never problem when connecting to sql server 2005 on the...
2
2617
by: dc | last post by:
I have a baffling connection problem from my C# console app to a sql server express database. The console application opens the sql database using the following code:- vDataSource = "server =...
1
5100
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.