Replies: 1
Hi,
I’m using Forminator_API::add_form_entry
to submit form data via a custom REST API endpoint. The data is correctly saved in the backend — I can see the submission under Forminator > Submissions, and all fields are correctly mapped.
However, the email notifications (both admin and user confirmation messages) are not sent automatically when using this method.
To be clear:
- The form is configured to send an automatic confirmation email to the user (e.g. “Thanks for your request, we’ll get back to you shortly.”).
- An admin notification is also configured.
- These emails are not sent when submitting via the API using
add_form_entry
. - If I go to Forminator > Submissions > [Entry] > Resend Email, both the user and admin emails are sent successfully, proving that everything is mapped correctly and the configuration is working.
This confirms that:
- The issue is not with the form setup or email configuration.
- The problem is that
Forminator_API::add_form_entry
only saves the data but does not trigger the form’s built-in email notification workflow.
Is there a proper way to trigger the full submission process (including notifications) programmatically, or is there a recommended hook or method to manually trigger the email sending after using add_form_entry
?
Thanks in advance for your help!