Mail Import Plugin for Zen Photo
I created the zpImpMail plugin to allow for easy import of photos/videos to Zen Photo via email attachments. Installation is simple, just extract the plugin files to the user plugin directory located at $ZENROOT/plugins, then activate the plugin in the usual manner. Once activated, the plugin is configured under the ‘Options’ => ‘Plugin’ tab.
The plugin is compatible with Zen Photo version 1.2.9 and the recently released version 1.3.
Configuration Options:
- Album – Sets the target album for import
- Mail Host
- Mail User
- Mail Password
- Mail Parser – Determines which mail parser will be used for extracting attachments from email messages
- Require valid sender – When checked, will check the sender address against the list of admin user email addresses
- Debug – When checked, will output debug info to the standard Zen Photo debug log
Usage:
There are three ways to use this plugin to retrieve attachments from email.
1. Use the ‘Import from Email’ button in the utilities section of the overview tab
2. Navigate to:
http://yoursite.com/zendir/plugins/zpimpmail/import_email_wrapper.php
3. Execute the above url via cron with something like the following:
curl -s http://yoursite.com/zendir/plugins/zpimpmail/import_email_wrapper.php > /dev/null 2>&1
When using method 3, it may be helpful to turn debugging on in order to verify that email is being read.
Download:
**Updated for compatibility with Zen Photo version 1.3
Get it here: zpImpMail v. 1.0.1