[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Changing "Return-Path" in PHP mail function - Help needed
- Subject: [cobalt-users] Re: Changing "Return-Path" in PHP mail function - Help needed
- From: Adrián Boismoreau <aboismoreau@xxxxxxxxxxxxxxx>
- Date: Wed Oct 17 16:12:00 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Yes, I've tested it, but the problem is that I cannot make the mail()
function to use my headers. I puts always this:
Return-Path: <httpd>
Received: (from httpd@localhost)
I think this if better for the PHP list.
Tanks for your help anyway.
Adrián E. Boismoreau
__________________
S K Y m e d i a
info@xxxxxxxxxxxxxxx
www.skymedia.com.ar
> Hi,
> I've noticed that many ISPs are filtering emails by their header
> information. So, if the email is sent by a PHP script using the mail()
> function, it will be deleted by some hosts.
>
> The email header sent from a php script has the following lines:
>
> Return-Path: <httpd>
> Received: (from httpd@localhost)
>
> My question is.... is there a way to change this lines?
>
> Any help would be very much apreciated.
>
> Regards,
>
> Adrián Boismoreau
> ___________________
> S K Y m e d i a
> www.skymedia.com.ar
> info@xxxxxxxxxxxxxxx
mail (PHP 3, PHP 4 )
.......
Example 3. Sending complex email.
/* recipients */
$recipient .= "Mary <mary@xxxxxxxxxxxxx>" . ", " ; //note the comma
$recipient .= "Kelly <kelly@xxxxxxxxxxxxx> . ", ";
$recipient .= "ronabop@xxxxxxx";
/* subject */
$subject = "Birthday Reminders for August";
/* message */
$message .= "The following email includes a formatted ASCII table\n";
$message .= "Day \t\tMonth \t\tYear\n";
$message .= "3rd \t\tAug \t\t1970\n";
$message .= "17rd\t\tAug \t\t1973\n";
/* you can add a stock signature */
$message .= "-\r\n"; //Signature delimiter
$message .= "Birthday reminder copylefted by public domain";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers .= "From: Birthday Reminder <birthday@xxxxxxx>\n";
$headers .= "X-Sender: <birthday@xxxxxxx>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <birthday@xxxxxxx>\n"; // Return path for errors
/* If you want to send html mail, uncomment the following line */
// $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
$headers .= "cc:birthdayarchive@xxxxxxx\n"; // CC to
$headers .= "bcc:birthdaycheck@xxxxxxx, birthdaygifts@xxxxxxx\n"; // BCCs to
and finally...
/* and now mail it */
mail($recipient, $subject, $message, $headers);