As I want to handle email failure and in that case when you send mail to other and if it gets in failure because of invalid to-email or etc. reason. In that case I can't see my email body in failure but I can see only subject line. So for that I want to pass hidden data in php email subject line.
Asked
Active
Viewed 964 times
0
-
1In what way do you think the data could be hidden? – ಠ_ಠ Oct 29 '12 at 07:25
-
what's problem with retrieving data from `$_POST`? what you want to get finally? can you show code? – loler Oct 29 '12 at 07:29
-
[VERP](http://en.wikipedia.org/wiki/Variable_envelope_return_path), may well be what you need, you create a return address with a code in it, and use that code to get what ever information you require. commonly used in mailing lists and other mailing software for tracking returns – Oct 29 '12 at 07:50
2 Answers
2
There is no way to hide data in the E-Mail subject.
The best you can do is include a code, and store additional information about this code in your database. When you are returned an E-Mail, you can use the code to look up the data.
That's the way many support systems work. The messages they send out will be in the form
(#1234567) Your support request
they are then able to parse out the 1234567
and look up the info, associate the reply with a customer, etc.

Pekka
- 442,112
- 142
- 972
- 1,088
-
can't i write any html tag and set css to display:none or any other way? – Nikunj Kabariya Oct 29 '12 at 08:10
-
@Nikunj in an E-Mail subject? No. No E-Mail client interprets HTML in subject lines. – Pekka Oct 29 '12 at 08:13