• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Removing Headers...

YUPAPA

NLC
NLC
Hi :classic2:

I am doing a web-based email program and I want to know what's the best way to remove headers from the email?
I can remove them, but the coding is too long-winded.

Please do this in either PHP or Perl. I know nothing about PHP, but I hope I understand what you are doing and convert it to Perl.

Thank you and Bye :p
 
something like this:

Code:
Return-Path: <somebody@somewhere.com>
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by somewhere.com (8.11.6/8.11.6) with SMTP id gBR22f001853
	for <somebody@somewhere.com>; Thu, 26 Dec 2002 21:02:41 -0500
Received: (qmail 7348 invoked by uid 0); 27 Dec 2002 02:07:03 -0000
Received: from h37n2fls32o849.telia.com (HELO mucus.gmx.net) (217.208.233.37)
  by mail.gmx.net (mp022-rz3) with SMTP; 27 Dec 2002 02:07:03 -0000
Message-Id: <4.3.2.7.2.20021227030609.034aad08@mail10.mail.some.se>
X-Sender: [email]10502604@pop.gmx.net[/email]
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Fri, 27 Dec 2002 03:07:00 +0100
To: [email]me@somewhere.com[/email]
From: he <somebody@somewhere.com>
Subject: OMG!
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Status:
 
ok i got it...
all you have to change is the $mailheaders var, i took one of my own emails to test with :D

if there are any bugs, tell me
 

Attachments

  • email.txt
    4.7 KB · Views: 30
:D THANK YOU THANK YOU!
I think I found the perl module I need... it is called MIME::Tools...

thank you for your help!! I've tried your php script and it works... :)
 
Back
Top