Re: Bounce composition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Mittwoch, 2. Mai 2007 20:11 schrieb Richard Lynch:
> Does anybody have or know of a good simple PHP script that can take an
> email as an input, and compose a "Bounce" email as output?
>
> I need something that does just that, without a huge framework or a
> zillion other "features"...

please try this:

$env['from'] = 'ceo@xxxxxxxxx';
$env['to'] = 'ceo@xxxxxxxxxxxxx';
$env['remail'] = imap_fetchheader($stream, $msgno);

$part0['contents.data'] = imap_body($stream, $msgno);
$body[0] = $part0;

$bounce_msg = imap_mail_compose($env, $body);

Not you should get rid of the 'Received-' headers.

I did not test it. If something goes wrong, please post again.

Regards,

Oliver

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux