Hi,
from our internal company network we don’t get a connection to Gmail. But from an external network.
/**
* Establish a connection to the google imap server
*/
private Store connect() throws MessagingException {
Properties props = new Properties();
props.setProperty("mail.store.protocol", "imaps");
Session session = Session.getDefaultInstance(props, null);
Store store;
try{
store = session.getStore("imaps");
store.connect('imap.gmail.com', this.emailAddress, this.emailPassword);
} catch (NoSuchProviderException e) {
e.printStackTrace();
throw e;
} catch (MessagingException e) {
e.printStackTrace();
throw e;
} catch (AuthenticationFailedException e) {
e.printStackTrace();
throw e;
}
return store;
}
A connection to another interface is running with our proxy. So settings and credentials are correct and proxy is working.
Does anybody have an idea what’s wrong?
Regards