I want to make an email forwarder similar to cPanels, where I have a database of email addresses, and where they should forward to, and I set a catch-all to pipe to my script.
I have completed this script, however, I would like to make the "To:" field in the header show the address it was sent to, rather than who is was being delivered to. For example, the email was sent to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
, and the script forwards it to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
. How can I make PHP send mail to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
, but still show
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
in the headers, like cPanel does?
I tried BCCing too, but that means that the message comes back to the server, since the "to" is still @mydomain. I could add a X-Processed header, but it seems inefficient to process every message twice.
I want to make an email forwarder similar to cPanels, where I have a database of email addresses, and where they should forward to, and I set a catch-all to pipe to my script.
I have completed this script, however, I would like to make the "To:" field in the header show the address it was sent to, rather than who is was being delivered to. For example, the email was sent to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
, and the script forwards it to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
. How can I make PHP send mail to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
, but still show
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
in the headers, like cPanel does?
I tried BCCing too, but that means that the message comes back to the server, since the "to" is still @mydomain. I could add a X-Processed header, but it seems inefficient to process every message twice.
|
|
Search Webmaster Help and Solution
PHP Mail HeadersRelated ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
