I doubt you can do it if you want it to run at "readtime", however you can use php to generate a text string to use as the body of the email - then just send it.
look for a script handling html emails, I had it recommended through this forum so search the archive. It is a class which accepts the body and sends. Haven't actually used it yet but intend to.
S