javax.mail.Session issues?
I wanted to do some simple email things based on some of the datasources such as email_TransitTime etc, but every time I try to use the Session class in the same way the LM datasources do, I get the error “unable to resolve class Session”.
All the datasources on our platform that fall under email_Whatever all do the same basic imports of javax.mail.* (which I believe is where this class is supposed to live) and a couple others, and snags System.getProperties() into a variable such as props or smtpProps, sets some additional mail properties, and then makes this call:
Session session = Session.getInstance(props, null);
But when I do this, I just get “unable to resolve class Session” every time.
Is this user error? :) Or does the availability of javax.mail.Session depend on some other module or component?
Thanks!
Check the Email_RoundTrip module. It is still largely useless if you need OAuth2. LM in theory added support but it remains undocumented AFAIK.