For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > April 2007 > Can't overwrite Return-Path









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can't overwrite Return-Path
Adam R

2007-04-06, 3:59 am

I want to use mail() function but I can't overwrite Retun-Path info. Most
mail servers overwrite the 'Return-path' header sent by the PHP mail()
function by a default email address (httpd@hostingcompany.com or
apache@domain.org).

I tried :

$headers = 'From: MyName<'.$from.'>\r\n';
$headers .= 'Return-Path: MyName<'.$from.'>\r\n';

even:

$headers,"-f".$from

can't help.

Any idea? Thanks.

--
--------------------------------------
Adam Raszkiewicz
Brothers-in-arts.com
--------------------------------------
Janwillem Borleffs

2007-04-06, 6:58 pm

Adam R wrote:
> even:
>
> $headers,"-f".$from
>
> can't help.
>


When this doesn't work, it means that the server admin has disabled this
option. There's not much to do about this other then trying to convince the
admin to enable it.


JW


Adam R

2007-04-06, 9:59 pm

On Fri, 6 Apr 2007 23:40:13 +0200, Janwillem Borleffs wrote:

> Adam R wrote:
>
> When this doesn't work, it means that the server admin has disabled this
> option. There's not much to do about this other then trying to convince the
> admin to enable it.
>
>
> JW


When I use -f parametr I can't receive messages even when I use e-mail
address at $from. Can be Return-Path compared with Message-ID to avoid
spam?

I would simply like to create a script which will enable sending sms
notifications about new e-mails in my mailbox.
--
--------------------------------------
Adam Raszkiewicz
Brothers-in-arts.com
--------------------------------------
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com