1. Fabrik 3.5.2 is now available to download. Read the blog for highlights about this release.

    As always, please back up your site prior to updating and if possible test in a dev environment first.

    Also, our 3.5.1 package file was hacked, the effected dates were 1/15/2017 - 1/17/2017. If during those days you downloaded the 3.5.1 package file from the JED or our site download page, please re-install the package with a fresh copy or upgrade to Fabrik 3.5.2. Github downloads were not effected.

Email list plugin

Feb 2, 2017
Email list plugin
  • The email list plug-in allows your users to select a series of rows and have them emailed to selected email addresses.


    Example screen shot(top)


    email-example.png

    Options(top)


    email-options.png

    • Access - which user group can email the records
    • Button label -The text used for the button's label
    • Send from user - If set to yes then the email's 'from' email address and name and will be those of the current logged in user. Otherwise the email will be sent from the site's admin email address
    • Condition -A PHP statment which must return true for the plug-in to be run

    E-mail(top)

    email-email.png
    • Recipient Method
      • Single -send one message with all recipients in the To line
      • Multiple -send multiple emails, one for each recipient
    • Get email address from- the method for defining the email address the email is sent to
      • Select from elements -When the user composes the email they have an additional dropdown which allows them to select the element which contains the email address
      • Defined in email to field -The email is sent to the email address defined in the 'email to' field.
      • Address book (pick list) - Enables the user to select email addresses from another list. Enter list connection details in the "Address book" tab. Renders as a picklist of addresses (see example screen shot above)
      • Address book (multi select) - Enables the user to select email addresses from another list. Enter list connection details in the "Address book" tab. Renders as a multiple select list.
    • Email to -The email address to send the email to - presuming 'get email address from' is set to 'defined in email to field'. (can use placeholders)
    • Email field display - How should the email to field be shown.
    • Subject -The email subject message (can use placeholders)
    • Hide subject - should the subject field be hidden
    • Message -The email's message (can use placeholders)
    • Template- PHP or HTML template to use for the email body, instead of the Message field above.
      • Files located in ./plugins/fabrik_list/email/tmpl.
      • HTML template can use placeholders.
      • See sample.php for an example of how to use PHP templates
      • Takes precedence over the 'content template' option
    • Content template - Joomla article to use as row template. Placeholders can be used
    • Allow attachments -Can the user attach files to the email ?

    Address book(top)

    upload_2017-2-2_8-41-27.png
    • Connection - Fabrik connection containing the 'address book' list
    • List - The 'address book' list
    • Email - Field containing the email addresses
    • Name - Field containing the names associated with the email address.
    • WHERE clause - An SQL "Where" clause which filters the returned data. Don't prepend WHERE.
      Example: if the address book has a field `published`, to show only emails/names with published = 1:

    Merge mail(top)

    email-mergemail.png
    • Merge emails - If yes then all records are merged into one email, (you cant use placeholders in the title or to fields). Otherwise individual emails are sent out per row. This option is not compatible with the 'select from elements' setting for get Email Address From option.
    • Message preamble - If using 'Merge emails' you can specify a preamble for your message, which will be inserted before any of the per-row merged message content (which uses the main Message template above). No placeholder replacement is done on this text. Typical use would be to wrap HTML formatting for tables or lists around merged row content.
    • Message postamble - If using 'Merge emails' you can specify a postamble for your message, which will be inserted after any of the per-row merged message content (which uses the main Message template above). No placeholder replacement is done on this text. Typical use would be to wrap HTML formatting for tables or lists around merged row content.

    Update rows(top)

    email-updaterows.png
    • Update -If the email is sent for a given row, should we update an element's data for that row?
    • Update value-What value to update the 'update' element to?. You can use some specific strings for some values (enter strings below without quotes):
      • "now()" will update your element with the date/time of the sent email.
      • "{subject}" will update your element with the subject line you entered in the 'E-mail' tab
      • "{$my->id}" will update your element with the ID of the logged in user sending the email
  • Loading...
alexforte83 likes this.