Re: mail priority

From: Date: Thu, 26 Jul 2001 04:45:47 +0000
Subject: Re: mail priority
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59696@lists.php.net to get a copy of this message
You can add it in the headers. In fact you can add any info as long as they abide by the RFC822. I took if from the function.mail.php /* additional header pieces for errors, From cc's, bcc's, etc */ $headers .= "From: Birthday Reminder <birthday@php.net>\n"; $headers .= "X-Sender: <birthday@php.net>\n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "X-Priority: 1\n"; // Urgent message! $headers .= "Return-Path: <birthday@php.net>\n"; // Return path for errors $headers .= "cc:birthdayarchive@php.net\n"; // CC to $headers .= "bcc:birthdaycheck@php.net, birthdaygifts@php.net\n"; // BCCs to /* and now mail it */ mail($recipient, $subject, $message, $headers); Adrian On Wed, 25 Jul 2001, Jack wrote: > Dear folks, > I am doing the email using mail() command. I wonder if there is anyone can tell me how do I do > the priority attached with the message so that the mail get sent out with different priority status. > Any advice will be appreciated. > Jack > jacky@activelifestyle.com > "Love your enemies, it will drive them nuts" >

« previous php.general (#59696) next »