Can't overwrite Return-path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam R

    Can't overwrite Return-path

    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@hostingc ompany.com or
    apache@domain.o rg).

    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
    --------------------------------------
  • Alvaro G. Vicario

    #2
    Re: Can't overwrite Return-path

    *** Adam R escribió/wrote (Thu, 05 Apr 2007 19:12:01 GMT):
    $headers = 'From: MyName<'.$from. '>\r\n';
    $headers .= 'Return-Path: MyName<'.$from. '>\r\n';
    >
    even:
    >
    $headers,"-f".$from
    Return path cannot be specified as header, you must use the -f parameter.
    Whether you can do it or not depends on your host's security settings.
    Also, return path doesn't accept a name, only an e-mail address.


    --
    -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
    ++ Mi sitio sobre programación web: http://bits.demogracia.com
    +- Mi web de humor con rayos UVA: http://www.demogracia.com
    --

    Comment

    • Adam R

      #3
      Re: Can't overwrite Return-path

      On Fri, 6 Apr 2007 08:59:38 +0200, Alvaro G. Vicario wrote:
      *** Adam R escribió/wrote (Thu, 05 Apr 2007 19:12:01 GMT):
      >$headers = 'From: MyName<'.$from. '>\r\n';
      >$headers .= 'Return-Path: MyName<'.$from. '>\r\n';
      >>
      >even:
      >>
      >$headers,"-f".$from
      >
      Return path cannot be specified as header, you must use the -f parameter.
      Whether you can do it or not depends on your host's security settings.
      Also, return path doesn't accept a name, only an e-mail address.
      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
      --------------------------------------

      Comment

      Working...