Setyenv · Docs
  • English
  • Spanish
  • Chinese
  • Japanese
  • Arabic
  • German
  • French
  • Hindi
  • Indonesian
  • Italian
  • Dutch
  • Portuguese
  • Russian
  • Turkish

Email notifications

Out-of-the-box notification on pfm.record.created for installs that don't run wp-pfworkflow.

Configure (per entity, via wp_options):

  • pfm_notify_email_to_<entity_slug> — comma-separated recipients.
  • pfm_notify_email_subject_<entity_slug> — optional subject override; default is "New \<entity-label\> submission".

Body is a plain-text dump of the record's field values; customise via filters:

add_filter('pfm_notify_email_subject', function ($subject, $entity, $record, $payload) {
    return "[Lead] " . ($record['name'] ?? 'unknown');
}, 10, 4);

add_filter('pfm_notify_email_body', function ($body, $entity, $record, $payload) {
    return my_template_renderer($entity, $record);
}, 10, 4);

For richer workflows (multi-step approval, conditional routing, cross-channel fan-out) use a wp-pfworkflow trigger on pfm.record.created instead — the EmailNotifier is the zero-code baseline.