I am trying to send an email from Confluence via the SDK, I have what I believe I need from:
- Import com.atlassian.mail.Email;
- Import com.atlassian.mail.Server.SMTPServer;
The issue is with initialising the smtpMailServer – I have seen in Jira it is done with
ComponentAccessor.getMailServerManager().getDefaultSMTPMailServer();
but the ComponentAccessor is within a com.atlassian.jira package – what is the equivalent/ how should it be done in confluence?
Many thanks in advance