Gravatar in email templates

Now that email templates are editable, I'd like to add the user's profile picture to the HTML template trhough gravatar. But to do that, I need the email hash, which is not yet available. Can you put it in a template context variable?

Declined
Share
Vladimir Mullagaliyev
Answer Declined

Hello,

You have a parameter "avatar_url" which has URL for a user avatar. It is a regular avatar (if uploaded), gravatar or default avatar, depends on situation.

You do not have to take a gravatar directly.


Sign in to leave a comment