[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Changing "Return-Path" in PHP mail function - Help needed (Adrian Boismoreau)
- Subject: [cobalt-users] Re: Changing "Return-Path" in PHP mail function - Help needed (Adrian Boismoreau)
- From: "Buky Torres" <webmaster@xxxxxxxxxxxx>
- Date: Wed Oct 17 14:36:00 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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
> Message: 3
> From: "Adrian Boismoreau" <aboismoreau@xxxxxxxxxxxxxxx>
> To: <cobalt-users@xxxxxxxxxxxxxxx>
> Cc: "Adrian de Cabo" <adecabo@xxxxxxxxxxxxxxx>
> Date: Wed, 17 Oct 2001 10:47:45 -0300
> Subject: [cobalt-users] Changing "Return-Path" in PHP mail function - Help
needed
> Reply-To: cobalt-users@xxxxxxxxxxxxxxx
>
> 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
>
>
>
> --__--__--
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>
> End of cobalt-users Digest
>