Operating System - HP-UX
1833863 Members
2276 Online
110063 Solutions
New Discussion

smtp mail - high priority flag

 
SOLVED
Go to solution
Tim Medford
Valued Contributor

smtp mail - high priority flag

Hi all.

We use mailx and sendmail to send messages to exchange users. This works fine, but now I'm trying to figure out how to mark certain emails as "high priority" when they reach exchange. I want the red excalmation point to show up in Outlook when they are received.

I can't find anything in the man pages on mailx or sendmail. I know there's a standard "importance" field in the smtp header, but I don't know how to set it on the hpux side.

Any ideas?

Thanks,
Tim
3 REPLIES 3
Jose Mosquera
Honored Contributor

Re: smtp mail - high priority flag

Hi,

Im'm not sure, but try this test sample:

echo "Importance: high"|sendmail -v user@domain

Rgds.
Jose Mosquera
Honored Contributor

Re: smtp mail - high priority flag

Jose Mosquera
Honored Contributor
Solution

Re: smtp mail - high priority flag

Hi,

Just to confirm you that this work fine and you have two ways to do:

1) When message is inside of body mesage:

Set a variable that contain the body text, i.e:
BODY=`cat file_of_body_text`
echo "Importance: High\nSubject: Test mail\n\n$BODY"|sendmail user_box@domain

This result in an email with High Priority Flag, Subject: "Test mail" and a body text.

2) When message is an attached file:

(echo "Importance: High\nSubject: Test mail\n\n$BODY";uuencode attached_file attached_file)|sendmail user_box@domain

Note: attached_file must be twice!
This result in an email with High Priority Flag, Subject: "Test mail" with an attached file.

Rgds.