How to get MailQueueItem object?

Nageswarara Rao 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

0 votes
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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);

Suggest an answer

Log in or Sign up to answer