Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Attaching files to outgoing email.

Deleted user June 28, 2011

We need to attach an encripted file to an outgoing email sent from JIRA and cannot find any references to this in the documentation.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Jobin Kuruvilla [Adaptavist]
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.
June 29, 2011

I don't think you can attach files in the outgoing emails in JIRA without modifying the underlying code. What you can probably do as a workaround is to send out a link to the file by customizing the email content. Not sure if it helps you!

0 votes
Alexander Johannes
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.
August 7, 2011

If you are trying to achieve this inside of a plugin, you can construct an e-mail via the standard javax.mail classes.

The hierarchy is something like

  • com.atlassian.jira.mail.Email
    • javax.mail.internet.MimeMultipart
      • javax.mail.internet.MimeBodyPart

The MimeBodyPart may contain text, html, binary data - just set the right mime type.

Finally you queue the e-mail, creating a new com.atlassian.mail.queue.SingleMailQueueItem

TAGS
AUG Leaders

Atlassian Community Events