Dear all,
I'd like to use "named" email with the Bureaucracy Plugin. I.e. the
user selects a name ("IT", "Purchase") from a list and the form is sent
to the appropriate recipient. The email addresses themselves should not
be visible for the user (source view is prohibited).
I tried to achieve this with a combination of "Dependencies with
Fieldsets"
(https://www.dokuwiki.org/plugin:bureaucracy#dependencies_with_fieldsets)
and "bureaucracy - select email destination from list"
(https://forum.dokuwiki.org/thread/15158). However the following form:
-----------------------------------------
<form>
action mail "@@contact@@"
fieldset "Your Request"
textbox "Your Name"
select "Who do you want to contact" "|IT|Purchase"
fieldset "Service Request" "Who do you want to contact" "IT"
textbox "Text for IT" !
hidden contact ="it@xxxxxxxxxx"
fieldset "Support Request" "Who do you want to contact" "Purchase"
textbox "Text for Purchase" !
hidden contact ="purchase@xxxxxxxxxx"
fieldset "Confirm Posting"
submit "Send Request"
</form>
-----------------------------------------
works fine when selecting "Purchase", but fails with the the following
error message, when selecting "IT":
E-Mail address <@@contact@@> is not valid
Something went wrong with sending that data
See also the attached screenshot.
Any idea why this is partially going wrong, how it could be fixed or if
there is a better way to achieve the goal of sending mails to selectable
email addresses, which itself should no be visible to the users?
Cheers
Frank
Attachment:
bureaucracy_mailsend_failed.png
Description: PNG image