Re: [PHP] Re: mail header questions



Hi Manuel,

1) I can't get the From header right, when I receive the test mail the
sender is apache

There is From: and From . From is not a real header. It is just set by
some MTA to the return path address and is also used as separator in
mailbox files with multiple messages in the mbox format.

If you can set the Return-Path address, you will most likely change what
appears in the From header.

I forgot to mention that I can't set the return-path either.

You may want to try this using the MIME message composing and sending
class, that lets you set the Return-Path header and can also detect the
right line break sequence for your platform.

http://www.phpclasses.org/mimemessage

That's a good idea, but I would still like to know what I am doing wrong in my
own script.

Thanks for your help

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
.



Relevant Pages

  • Re: Changing Return-Path on CDO sent mails
    ... header, but it doesn't work at all. ... > I think return-path is changed by the receiving MTA when the sending MTA ...
    (microsoft.public.inetserver.iis)
  • Changing Return-Path on CDO sent mails
    ... I need to change the 'return-path' header of the e-mails I send using CDO in Windows 2000/2003. ... I've tried to change the urn:schemas:mailheader:return-path in the mail header, but it doesn't work at all. ... I think return-path is changed by the receiving MTA when the sending MTA connects to it for authenticate, but as long as I'm using the local SMTP server included with IIS I don't know how to indicate that... ...
    (microsoft.public.inetserver.iis)
  • Re: Cant overwrite Return-path
    ... |> I want to use mailfunction but I can't overwrite Retun-Path info. ... |> mail servers overwrite the 'Return-path' header sent by the PHP mail ... | message composing and sending e-mail messages. ...
    (alt.php)
  • Re: [SLE] Spam emails in the suse-linux-e
    ... Just had an idea Carlos, in the WU Pine Tech Notes, config and preferences ... while your From: header could be a ... Many MUAs use the Return-Path for envelope sender ...
    (SuSE)
  • Re: [PHP] Just to confirm...
    ... Well the Reply-To: header isn't for bounces. ... for that Return-Path: should be used ... Typo. ...
    (php.general)