I have the Private Message module configured to send notifications when users receive a private message. I have the Mime Mail module configured and working; the private messages are sent as HTML and display properly. However, I have been unable to find a way to include user pictures in the messages.
On my site, I have a field that contains the user picture (I am not using the standard user pictures built-in to Drupal). However, I have overridden the user pictures template to show this field, so a solution that works for user pictures should hopefully work for my case as well.
I tried to solve this with tokens.
The token module makes available the following token: [privatemsg_message:author:field_acc_profile_picture]
However, when I include this token in the message, it is simply returned as a text string; no substitution is performed.
I thought this could be done with PHP but there is no way as far as I can tell to include PHP in the e-mail notify message field.
So, how can I include user pictures in e-mail notifications sent by the privatemsg module?