I'm upgrading Bamboo from v5.4.2 to v5.14.3.1 and wanted to know how can I send an email from a custom plugin

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?

3 answers

1 accepted

This widget could not be displayed.

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));

This widget could not be displayed.

Is there a specific problem you have with that plugin?

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
This widget could not be displayed.

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


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

112 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you