Last updated March 27, 2011. Created by dalkire on May 13, 2009.
Edited by silverwing. Log in to edit this page.

The email2image module offers a way to convert users' email addresses to images on the fly. The image of the user's email address will be at <base_path>email2image/<uid> (e.g. http://yoursite.com/email2image/1). To use in views, make sure uid is a field of the view so we can use it as a replacement pattern. Then add another field, check "Rewrite the output of this field" and add the following as the replacement content:

<img src="/email2image/[uid]" />

You might also want to choose no link in the "link this field" section.

New Feature: Now works for any node

No longer does the module require the email addresses to be from users. The module now requires the email module for cck. By leveraging this module, you can now get an image of an email address from any node that you have added an email field to. You do this in a similar way to users (which is still supported).

Use in views:
Make sure nid is a field of the view so we can use it as a replacement pattern. Then add another field, check "Rewrite the output of this field" and add the following as the replacement content:

<img src="/email2image/node/[nid]" />

It is as simple as that.

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.