I want to make the post contents in the email different from what is displayed in the single web page. More specifically, I want to change the links in the contents if they are in an email, but not in the web page, for statistics purposes.
The "dontemail" won't help me here, because I want to add content to the email. I would create a plugin with a filter to the contents of the posts, but for that I believe I would need something like "is_this_a_wpemmail", which I don't know of.
Any suggestions on how to do this? Thanks in advance.