The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get MailQueueItem object?

Nageswarara Rao
Contributor
April 1, 2013

Hi,

I m Using Jira5.0 , In my source i want to use MailQueueItem methods. How to Instantiate the MailQueueItem and get those methods.

Thanks in Advance

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Deleted user
April 6, 2013

MailQueueItem is an interface, there are implementations that you can use for example SimpleMailQueueItem:

Email e=new Email();

...

SingleMailQueueItem smqi = new SingleMailQueueItem(e);

...

ComponentAccessor.getMailQueue().addItem(smqi);

TAGS
AUG Leaders

Atlassian Community Events