Repository navigation
Conversation
ccailly
force-pushed
the
feat_email_destination_11
branch
from
November 3, 2026 15:53
e707d25 to
efedfea
Compare
Add a form destination that sends a customized email when a form is submitted, behind a new "Email destination" switch on the plugin configuration page. - Subject and body reuse the core Title and Content fields, so they accept form tags and the body supports auto configuration. They are laid out as form rows, the body label sharing the line of the "Auto config" switch. - Recipients come from answers (email, requester, observer and assignee questions), specific users or groups, and free email addresses typed as tags, as in the actors fields of the ITIL objects. Inactive, deleted or expired users and groups with notifications turned off are skipped, as for GLPI notifications. - Emails go through the notification queue, one per recipient. The body is sanitized, and a sending failure is logged without cancelling the submission. - The config form, export, import and clone follow the native ITIL destinations.
ccailly
force-pushed
the
feat_email_destination_11
branch
from
November 3, 2026 16:05
efedfea to
06eeeee
Compare
Rom1-B
requested review from
a team,
Herafia,
Mary-Clb and
MyvTsv
and removed request for
a team
November 4, 2026 13:15
Herafia
previously approved these changes
Nov 4, 2026
stonebuzz
requested changes
Nov 6, 2026
| public function getAllowedQuestionType(): array | ||
| { | ||
| return [ | ||
| new QuestionTypeEmail(), |
Contributor
There was a problem hiding this comment.
A form can retrieve its recipients from a freely entered email reply and include free-form responses in the body. Anyone authorized to submit the form including anonymous users if the form is directly accessible, can then have an arbitrary text sent to any address from GLPI’s official sender, with no bandwidth limit.
I don't know if there's a better way to do this maybe include a warning somewhere for “form administrators.”
Contributor
Author
The email of each group member was read with its own query, on every submission and inside the answers transaction. The recipients are now collected as user ids, then their default emails are fetched at once.
The recipients may come from an answer to an "Email" question, and the body may contain free answers: anyone allowed to answer the form can then have any text sent to any address. The config of the destination now warns about it, more strongly when the form can be answered without being authenticated.
Mary-Clb
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Checklist before requesting a review
Description
Backport of #83 for GLPI 11.0.
Add an "Email" form destination that sends a customized email when a form is submitted. It can be enabled from the plugin configuration page, under the new "Destinations" section.
Screenshots (if appropriate):