Notifications & Emails
OForms can send two types of emails on form submission.
Admin Notification
Sends an email to site admins (or any custom address) when a form is submitted.
Config (stored per-form):
php[
'enabled' => true,
'to' => 'admin@site.com', // comma-separated, supports {{field_name}} tags
'subject' => 'New submission: {{form_title}}',
'body' => '{{all_fields}}', // {{all_fields}} = table of all submitted values
'from' => 'forms@site.com',
'reply_to' => '{{email}}', // reply to submitter
]
Autoresponder (Confirmation Email)
Sends to the person who submitted the form.
Config:
php[
'enabled' => true,
'to' => '{{email}}', // must reference an email field
'subject' => 'Thanks for reaching out',
'body' => 'Hi {{first_name}}, we received your message...',
]
Merge Tags in Notifications
{{form_title}} — form name
{{all_fields}} — HTML table of all field label + value pairs
{{entry_id}} — submission entry ID
{{site_url}} — WordPress site URL
{{admin_email}} — WordPress admin email
{{field_name}} — any field's submitted value (use the field's name attribute)
{{ip_address}} — submitter IP
{{date}} — submission date