+ Post New Thread
Results 1 to 7 of 7
Web Development Thread, Importance in mail headers in Coding and Web Development; Hey, I am trying to set the Importance of an email sent via the mail() command to high, but everything ...
  1. #1

    Join Date
    Sep 2008
    Location
    Oakham
    Posts
    31
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Importance in mail headers

    Hey,

    I am trying to set the Importance of an email sent via the mail() command to high, but everything I try doesn't work.

    Does anyone have any idea how I can fix it?

    Dan

  2. #2


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 434 Times in 353 Posts
    Rep Power
    125
    It would help if you posted the broken code.

  3. #3

    Join Date
    Sep 2008
    Location
    Oakham
    Posts
    31
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    PHP Code:
    $headers "From: website@.com" "\r\n" .
                
    "Reply-To: noreply@.com" "\r\n" .
                
    "Importance: High" "\r\n" .
                
    "Content-type: text/html; charset=iso-8859-1" "\r\n"

  4. #4
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,199
    Thank Post
    149
    Thanked 143 Times in 129 Posts
    Rep Power
    75
    Found this on devshed, headers should contain:

    PHP Code:
    $headers $headers "X-Priority: 2\nX-MSmail-Priority: high"
    So...

    PHP Code:
    $headers "From: website@.com" "\r\n" 
                
    "Reply-To: noreply@.com" "\r\n" 
                
    "X-Priority: 2\nX-MSmail-Priority: high" ."\r\n"
                
    "Content-type: text/html; charset=iso-8859-1" "\r\n"
    Last edited by dwhyte85; 26th March 2010 at 11:59 AM.

  5. Thanks to dwhyte85 from:

    Danny159 (26th March 2010)

  6. #5

    Join Date
    Sep 2008
    Location
    Oakham
    Posts
    31
    Thank Post
    14
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thanks, Dan

  7. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,855
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    181
    "Importance" is an Outlook-ism. Always check the RFC when doing anything like this (especially if it was originally designed by hacker legends, as SMTP was).

  8. #7
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,199
    Thank Post
    149
    Thanked 143 Times in 129 Posts
    Rep Power
    75
    Probably shouldn't have posted that... going to get Viagra spam come through with high importance now

SHARE:
+ Post New Thread

Similar Threads

  1. [PHP] Send Session and Redirection Headers.
    By Maz in forum Web Development
    Replies: 5
    Last Post: 9th July 2009, 04:41 PM
  2. Ofsted - The Importance of ICT
    By Diello in forum General Chat
    Replies: 0
    Last Post: 30th March 2009, 07:19 PM
  3. Bulk removal (and addition) of headers and footers in Word
    By dagza in forum How do you do....it?
    Replies: 5
    Last Post: 20th June 2008, 02:16 PM
  4. Replies: 1
    Last Post: 20th May 2008, 11:09 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •