I am upgrading Bamboo and have a custom plugin that I'd like to send email but I'm having a hard time getting it to work. Is there any developer documents or examples that I can take a look at to get this working?
If he can't do it the way he was doing it perhaps this might work?
Email email = new Email(recipient).setSubject(subject).setBody(message);
eventPublisher.publish(new EmailEvent(this, email));
BambooMailer is a Spring bean that was never available to plugins and you're not supposed to initialize it manually. You'll have to send the email using standard Java APIs.
I don't see why it shouldn't be made available to plugins - feel free to open an improvement request at jira.atlassian.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a specific problem you have with that plugin?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't instantiate BambooMailer. Prior to v5.10 it was a no argument constructor.
bambooMailer = new BambooMailer(new EmailService(new XMLMailServerManager())); gives a signature mismatch
bambooMailer = new BambooMailer(new EmailService(new BambooMailServerManager())); gives a signature mismatch
BambooMailServerManager bambooMailServerManager = new BambooMailServerManager();
SMTPMailServer mailServer = bambooMailServerManager.getDefaultSMTPMailServer(); gives a NPE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.