Jump to content

Need help after Piping Email to php script...


shiznewski

Recommended Posts

I'll try to be as clear as possible. I use cpanel and account level filtering to handle my incoming emails. The filter pipes all incoming email to mypipe.php. Inside the php i break apart the headers and body and add certain information to a database but now i need to forward the email to either myself or my partner. I know there is the mail() function but if i use that the email will come from [email protected] instead of the original sender. Is it possible to just redirect(cpanel term in the account level filter options) or fwd the mail as it is?

I don't actually want to change the from. I just want to redirect the email to either myself or my partner. If you use forwarding option in hotmail/yahoo/gmail or the redirect to email option in cpanel, this is what i'm trying to accomplish

right... but this *hack* allows you to specify the FROM value in the PHP mail() function.  Isn't that what you're looking to do? ...get a copy of the email as well as though it appears from the original sender? 

 

If so, just use this hack and the mail() function to shoot an email to you when you write all of the pertinent values to the database.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.