Hi,
I want to send e-mail to user whenever some action is triggered. How can I achive that using confluence? Or should I use some external java library like java mail?
Community moderators have prevented the ability to post new answers.
I solved my problem with com.atlassian.core.task.MultiQueueTaskManager and com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem classes. With PreRenderedMailNotificationQueueItem class (and a template) you can create the message. Then you should
email.render(); and
multiQueueTaskManager.addTask("mail", email); it.
Do not forget to configure your SMTP Server in administration panel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well ... I do not have access to source code download. Anyway, what should I include in pom.xml to obtain *.jar with class mentioned above?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have bought license to Confluence, you can download the source from http://my.atlassian.com/
I'd rather not paste the source code here. Sorry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You get access to the confluence source with the $10 starter licenses - there's really no point in trying to struggle along without it ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Download the Confluence source code and take a look at:
com.atlassian.confluence.ext.mailpage.MailPageAction
Likely, you want to wrap your code in an Event Listener.
Read the documentation: Writing an Event Listener Plugin Module
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.