Read email for X500 account

I can read emails with a gmail account using Java:

I know how to set the host and password values but do not know to set the username value for the following email account:

X500:/O=XYZ/OU=AB123/cn=Recipients/cn=USERME
SMTP:USERME@DEFG.COM

I tried the following but it fails to log in.

String username = "USERME";// change accordingly
//OR
String username = "AB123\\USERME";// change accordingly

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.