scyfel / mailfromtable
Inserts an email from the database for an ID in a form
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 3
Type:contao-module
Requires
- php: >=5.3
- contao/core: >=3.3,<4
This package is auto-updated.
Last update: 2024-11-20 21:59:35 UTC
README
Inserts an email from the database for an ID in a form
Adds a new field (hidden) field type. It gets a table and column name. As form values only numeric values are accepted. When sending the form, a database lookup in that table for the given ID (value) ist done, getting the email from the given column. If no value is found a fallback email address is returned.
Use the extension formrecipient to use the email from this field as recipient of the form.
You can use this to pass the id of the member/user of a record (page, article, catalog/metamodels entry, ...) to a form. (You might need inputvar for this.) The filled form will be delivered to the record owner now instead to a predefined email addres without having that email anywhere in the web page source code.
Contributor
- Christian Barkowsky hallo@christianbarkowsky.de
- Jan Theofel