|
@@ -292,15 +292,10 @@ public class EmailUtil {
|
|
props.put("mail.store.protocol", mailboxInfoDTO.getProtocol());
|
|
props.put("mail.store.protocol", mailboxInfoDTO.getProtocol());
|
|
}
|
|
}
|
|
if (mailboxInfoDTO.getProtocol().equalsIgnoreCase(IMAP)) {
|
|
if (mailboxInfoDTO.getProtocol().equalsIgnoreCase(IMAP)) {
|
|
- props.put("mail.store.protocol", "imaps");
|
|
|
|
|
|
+ props.put("mail.store.protocol", "imap");
|
|
props.put("mail.imap.host", mailboxInfoDTO.getHost());
|
|
props.put("mail.imap.host", mailboxInfoDTO.getHost());
|
|
props.put("mail.imap.port", mailboxInfoDTO.getPort());
|
|
props.put("mail.imap.port", mailboxInfoDTO.getPort());
|
|
- props.put("mail.imaps.ssl.enable", "false");
|
|
|
|
- props.put("mail.imaps.ssl.trust", "*");
|
|
|
|
- props.put("mail.imap.auth", "false");
|
|
|
|
- props.put("mail.imap.starttls.enable", "false");
|
|
|
|
- props.put("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
|
|
|
|
- props.put("mail.imap.socketFactory.fallback", "false");
|
|
|
|
|
|
+ props.put("mail.imap.ssl.enable", "false");
|
|
}
|
|
}
|
|
return props;
|
|
return props;
|
|
}
|
|
}
|