Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

[PHP] Re: mail priority From: Adrian D'Costa (adrian <email protected>)
Date: 07/26/01

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 <email protected>>\n";
$headers .= "X-Sender: <birthday <email protected>>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <birthday <email protected>>\n"; // Return path for
errors
$headers .= "cc:birthdayarchive <email protected>\n"; // CC to
$headers .= "bcc:birthdaycheck <email protected>, birthdaygifts <email protected>\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 <email protected>
> "Love your enemies, it will drive them nuts"
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>