[
http://jira.nuxeo.org/browse/NXP-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37357#action_37357
]
Anahide Tchertchian commented on NXP-2451:
------------------------------------------
A TestConnection class sample
public class TestImapConnection {
public static void main(String args[]) throws Exception {
Properties props = new Properties();
props.put("user", "[EMAIL PROTECTED]");
props.put("password", "password");
props.put("mail.store.protocol", "imap");
props.put("mail.imap.host", "mail.example.com");
props.put("mail.imap.port", "993");
props.put("mail.imap.ssl.protocols", "SSL");
props.put("mail.imap.starttls.enable", "true");
props.put("mail.imap.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.imap.socketFactory.port", "993");
props.put("mail.imap.socketFactory.fallback", "false");
Session session = Session.getDefaultInstance(props);
Store store = session.getStore();
System.err.println("connecting");
store.connect(props.getProperty("user").toString(), props.getProperty(
"password").toString());
store.close();
System.err.println("done");
}
}
> Add documentation on mail injection
> -----------------------------------
>
> Key: NXP-2451
> URL: http://jira.nuxeo.org/browse/NXP-2451
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.1.4, 5.2 M1
> Reporter: Anahide Tchertchian
> Assignee: Alexandre Russel
> Fix For: 5.1.5
>
>
> Some documentation is needed when dealing with an ssl connection to an
> imap/smtp/pop3 server.
> A README.txt referencing the docbook doc at the module root would be a good
> idea too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets