Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Is there any way to set the priority of an email in mailx?  (Read 10519 times)

0 Members and 1 Guest are viewing this topic.

doanphan111

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 8
    Is there any way to set the priority of an email in mailx?
    « on: November 06, 2019, 05:13:39 AM »
    Is there any way to set the priority of an email in mailx?
    Thanks
    Doan

    nil

    • Global Moderator


    • Intermediate
    • Thanked: 15
      • Experience: Experienced
      • OS: Linux variant
      Re: Is there any way to set the priority of an email in mailx?
      « Reply #1 on: November 06, 2019, 06:49:34 AM »
      You need to append an
      Code: [Select]
      X-Priority: header to your e-mail. Some versions of mailx support the -a option, which allows you to append a custom header string.

      Some versions of mailx use -a for another purpose. For example, Computer Hope's command reference for mailx lists -a as the file append option. So check your man page with
      Code: [Select]
      man mailx to find out if your version of mailx supports appending headers with -a.

      If it does, you can use the option
      Code: [Select]
      -a "X-Priority:1"
      If not, you can try using sendmail instead of mailx. More info in this thread https://stackoverflow.com/a/24011131
      Do not communicate by sharing memory; instead, share memory by communicating.

      --Effective Go

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10