Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Send High Priority mail using follow up plugin

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

0 votes

Comments
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

 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 .

0 votes

Comments
did you check this https://www.example-code.com/java/smtp_x-priority.asp and https://stackoverflow.com/questions/45988065/why-does-my-email-method-always-send-email-with-the-email-itself-as-attachment ?

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 21 '18, 7:26 a.m.

Question was seen: 4,353 times

Last updated: Sep 25 '18, 8:15 a.m.

Confirmation Cancel Confirm