How-to: Setup Form-to-Email
Many TTG engines utilize the free Form-to-Email PHP script to enable email response forms on your image gallery or website pages. For sent emails to reach the photographer, the Form-to-Email script must first be supplied with a target email address for messages.
To setup the script for your galleries, we need to open the web engine package. Locate your web engine, ending in the extension .lrwebengine, where you have installed it in the Web Galleries folder.
On Windows platforms, the .lrwebengine package is a folder and can be opened by double-clicking it.
On Mac platforms, we open the .lrwebengine package by Ctrl-clicking it in the finder, and selecting “Show Package Contents” from the resulting menu.
Once inside, delve into the /resources/ folder and locate the FormToEmail.php file. Open this file using a plain text-editor.
The file contains instructions for implementing Form-to-Email in your webpages; ignore the instructions. The TTG web engine handles all form implementation for you, and so you need not worry about any of this. The only thing you need to do is scroll down to roughly line 83 of the file, then input your email address at which you would like to receive messages in the specified location. Do nothing else; save and close the file.
Restart Lightroom if it is running. You may now use the template to generate your image gallery or website pages. Any exported galleries will include the modified Form-to-Email script containing your email address.
Please remember than when you update your web engines with newer releases — I periodically release updates including bug fixes and feature improvements — you will need to configure your Form-to-Email scripts again.
Form-to-Email Remote
As an alternative to using the Form-to-Email script, recently updated TTG engines include support for Form-to-Email Remote. Form-to-Email Remote can be used as a matter of preference, or should be used by those users whose web-servers do not support PHP. To utilize Form-to-Email Remote, register an account at formtoemailremote.com.
You should then locate the pictured controls within the left-hand control pane for your web engine, and fill in the required information, including your User ID and Form ID. This information should be retrieved from your user profile on the Form-to-Email Remote website. The User ID will be a unique code, and not your username. The Form ID will usually be 1; Lightroom may display this value as 1.00, and that’s okay.
When using Form-to-Email Remote, you do not need to setup the FormToEmail.php script.
Comments on this entry are closed.