onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

Multiple mail recipients per form #752

Open fredericalpers opened 4 months ago

fredericalpers commented 4 months ago

Initiative

Improve the onOffice for WP-Websites Plugin Forms

Epic

Multiple recipients for onOffice Forms in WordPress

User story

As a real estate agent utilizing the onOffice for WP-Websites Plugin, I face limitations in the current form setup, restricting me to a single recipient for form submissions. Recognizing the need for efficient communication within my team, I seek the capability to add multiple recipients to onOffice forms.

The existing functionality of the onOffice for WP-Websites Plugin allows for the creation of forms that capture valuable leads and inquiries. However, the restriciton to a single recipient poses challenges, particulalry in team-based real estate operations. To enhance the flexibility of forms, I propose the implementation of a feature allowing multiple recipients for onOffice forms.

Tasks

By introducing the ability to specify multiple recipients for onOffice forms, the onOffice for WP-Websites Plugin can better accommodate the collaborative nature of real estate teams. This enhancement ensures that form submissions are efficiently directed to the appropropriate recipients within a real estate operation.

The design is just a general reference. It should be according to other multiselects as implemented before.

mtpl-recipients

dai-eastgate commented 3 months ago

@fredericalpers Currently, I only see that the "cc" parameter is supported for the "Send Email" API on onOffice API. https://apidoc.onoffice.de/actions/aktionen-ausfuehren/email-versenden/ For the "contact address" API which we are using to send emails in the current source code, we see that the "cc" parameter does not support this API. Watch the test video below: https://files.fm/u/7z7p82xqa5#/view/d8vhhqvfha Please check with your IT department. Then respond for me. What is the "parameter name" Which supports CC recipients of the "contact address" API?

dai-eastgate commented 3 months ago

@fredericalpers

Tasks

  • [ ] Modify the form interface to incorporate a section for adding multiple recipients (CC recipients)
  • [ ] Integrate the multiple recipient functionality that enables me to easily add, remove or modify recipients into the form settings backend (select2 dynamic option creation https://select2.org/tagging ?)
  • [ ] Integrate a note that this feature will not work with contact forms on property detail pages.

I have implemented to modified the form interface to incorporate a section for adding multiple recipients (CC recipients) in backend I will complete this feature as soon as the "contact address" API provides "Cc" recipients parameter. You can review it on the branch "45790-multiple-mail-recipients-per-form" and watch video demo: https://files.fm/u/7jryy5qa2m#/view/xs47uyujsa