Login   Register  
PHP Classes
elePHPant
Icontem

Redirect or Resent to option?

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MIME E-mail message sending  >  All threads  >  Redirect or Resent to option?  >  (Un) Subscribe thread alerts  
Subject:Redirect or Resent to option?
Summary:Redirect or Resent to option?
Messages:4
Author:sefgsdfg
Date:2011-08-31 14:18:52
Update:2011-09-01 03:09:35
 

  1. Redirect or Resent to option?   Reply  
Picture of sefgsdfg
sefgsdfg
2011-08-31 14:18:52
I need to be able to parse an email account using you scripts and be able to redirect certain emails to the user at another email address, filtering only certain messages for this. I want the user to receive the email at a different email account than I am checking but when they get it appear still with the "to" address that I am checking, not the address I resent it to. This can be done in email programs but I don't see anything in the scripts for redirect or resend-to options. Am I missing it or is this not available?

  2. Re: Redirect or Resent to option?   Reply  
Picture of Manuel Lemos
Manuel Lemos
2011-08-31 15:28:43 - In reply to message 1 from sefgsdfg
This class is just for sending messages, for receiving and processing there are other classes. Take a look at this article that talks about that matter:

http://www.phpclasses.org/blog/package/2/post/1-Process-inco ...

  3. Re: Redirect or Resent to option?   Reply  
Picture of sefgsdfg
sefgsdfg
2011-08-31 16:49:21 - In reply to message 2 from Manuel Lemos
Sorry if this wasn't the best place to post the question. I use a number of your scripts and as what I am trying to do was send the email again after parsing it it seemed to be the right place. The link you provided I am already doing and that is working fine. I do want to process the email into a database and delete it, I am polling a pop3. This part is all fine. Users will mostly view the emails from the database but there are occasions where they want the emails we get to also go direct to them and they need to be able to reply from that email direct to the client. In desktop email programs I could set up a filter to look for something (same as the parsing) and if it matches redirect that email to another email address, basically sending it again but the new recipient sees it as we got it, the headers in include a Sent-to that gets it to the address we want while the email still shows the To address that was originally in the email that we got and parsed. Does that make sense?

  4. Re: Redirect or Resent to option?   Reply  
Picture of Manuel Lemos
Manuel Lemos
2011-09-01 03:09:37 - In reply to message 3 from sefgsdfg
If you just want to forward the original message in some cases, it is better to use the SMTP class to re-inject the original message for delivery to the final recipient mailbox.