It's all about the answers!

Ask a question

Send High Priority mail using follow up plugin


Anurag Patel (21363) | asked Sep 21 '18, 7:26 a.m.

Hi,


I am using 6.0.5 version.
I have created one follow up plugin which can send the customise E-Mail to the users.
I had written the logic to set those E-Mail as 'High Priority', and tested it by deployed the plugin on server system.
But that E-Mail is not set to high priority. Debug the code and check , value for High Priority is set into the message but mail is not set/showing to the High Priority symbol/message in outlook.

Same code (E-Mail sending logic ) I have tested in simple Java program. It is working perfectly.
Can any one having some idea about it, Why it is not set to High Priority.
Is there any limitation with mail sending server API.

Thanks


Comments
David Lafreniere commented Sep 24 '18, 11:20 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Would you mind sharing the code snippet you are currently using to send emails as 'high priority'? It's possible this might help others pinpoint what may be going wrong.

One answer



permanent link
Anurag Patel (21363) | answered Sep 25 '18, 1:35 a.m.

 Hi David,


Below are the code for mail sending and set the mail as high priority.

Multipart multipart = new MimeMultipart();
BodyPart part1 = new MimeBodyPart();
part1.setHeader("Content-Type", "text/html");
part1.setHeader("X-Priority","1");

        //part1.setHeader("Importance","High"); 

part1.setText(bodyMessage);
multipart.addBodyPart(part1);
mailerService.sendMultipartMail(mailerService.getDefaultSender(), toAddress, subject, multipart, cc);

I tried for both Priority and Importance but mail is not set to high priority.

Thanks .

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.