Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am trying to set the priority of my mail using:

$msg = new Mail::Send; $msg->set("X-Priority", 1); $msg->set("Priority", "Urgent"); $msg->set("Importance", "high");
However it doesn't work.
Does any one have an why ?

Thanks,
Miriam.

Edit, BazB: added code tags. Removed incorrect markup.

Replies are listed 'Best First'.
Re: Mail::Send & Setting the priority
by skx (Parson) on Oct 16, 2003 at 15:57 UTC

     In what way does this not work? Is it the case that the headers you are attempting to add aren't present in the mail that's being sent, or that the priority is bing ignored?

     If it's the latter you're out of luck; as these are just advisory headers which may be ignored by the server(s) your mail is being passed through.

    Steve
    ---
    steve.org.uk
      Almost all mail servers don't have priorities for email and ignore the priority headers. The headers are more of a signal to clients that an email is important and should be flagged for the user.