EmailImage by horst, Ryan Cramer

Send photos from your mobile phone to ProcessWire, from anywhere, on-the-fly. ProcessWire maintains a chronological gallery that you can simply email photos to.

Email Image Module for ProcessWire

Send photos from your mobile phone to ProcessWire, from anywhere, on-the-fly. ProcessWire maintains a chronological gallery that you can simply email photos to. Works with any e-mail capable device, whether mobile phone, tablet or desktop.

  • Output inspired by the work of Philipp Reiner.
  • Discussion leading to this module can be found here.
  • Written by Horst Nogajski and Ryan Cramer
  • Uses email libraries by Manuel Lemos
  • License under GNU GPL v2
  • Requires ProcessWire 2.2.13 or newer
  • Here is example output from this module.

How to Install


  1. Setup a new email address at your provider. This address should be dedicated to the purpose of this module. Make the address private and cryptic enough so as not to be obvious or discoverable by others.
  2. Place the files included with this module in /site/modules/EmailImage/
  3. In your admin, go to Modules > Check for new modules.
  4. Click Install for the EmailImage module.
  5. Complete all the settings it asks for, per the email you setup in step 1.
  6. Check the box to test your connection, and save.

How to Use


  1. Email an image to the address you configured.
  2. After waiting a minute or two, view the URL /email-images/ in your site. This is a page that was installed for you to display images.
  3. Repeat and enjoy. :)

How to Customize


While this module has everything working out-of-the-box, it is meant to be customized to your needs. For example:

  • You may want to move or rename the /email-images/ page somewhere else. The EmailImage module keeps track of this page ID, so it is perfectly fine to remove or rename it if you want to.
  • Take a look at the /site/templates/email-images.php template file. You may wish to replace it entirely with your own code, or you might build upon what's there, or use it as-is. But chances are you'll at least want to swap in your own header/footer to fit within your site's design.
  • Take a look at /site/modules/EmailImage/EmailImageRender.php. That file contains an example function used to render an image gallery. This is the one called upon by the template file you just looked at. You might copy and paste this function somewhere else into your own site, and modify it to suite your own markup needs. Just remember to name it something different!

Please post links to what you create in the ProcessWire forums.

How to Uninstall


You can uninstall this module in the same way as any other module, by checking the box to "uninstall" from the module settings screen. But please note the following warning:

When you uninstall, your system is returned to the state that it was in before this module was installed. Meaning, the EmailImage pages and images will be deleted. So please backup your images somewhere else if you want to lose them during uninstall.

After uninstalling, you can safely remove this dir: /site/modules/EmailImage/.


Copyright 2013

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Twitter updates

  • ProcessWire 3.0.171 dev branch core updates – More
    22 January 2021
  • Preliminary 2021 roadmap in progress in this week’s update— More
    8 January 2021
  • Happy New Year! Today I’ve bumped the version on the dev branch to 3.0.170, and it’s quite a lot of updates. This post covers most of them. In this post, there’s also a question for you: what would you like to see in ProcessWire in 2021? More
    1 January 2021

Latest news

  • ProcessWire Weekly #350
    In the 350th issue of ProcessWire Weekly we'll check out ProcessWire 3.0.171, highlight some recent forum threads and other ProcessWire resources, and introduce a brand new site of the week. Read on!
    Weekly.pw / 23 January 2021
  • ProcessWire 3.0.170 core updates
    Happy New Year! Today I’ve bumped the version on the dev branch to 3.0.170, and it’s quite a lot of updates. This post covers most of them. In this post, there’s also a question for you: what would you like to see in ProcessWire in 2021?
    Blog / 1 January 2021
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits