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?
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
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
I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events