Hello Community,
First things first, Im new to Neos and now i need some help from you guys
Im want to customize the Contact-Form so a customer can choose the recipient email address in the backend Inspector.
At first i used the guide from the docs to ‘Add a simple contact form’.
I created a new package and already extended the Inspector:
TYPO3.Neos.NodeTypes:Form':
ui:
inspector:
groups:
add:
label: 'Settings'
position: 1
properties:
recipientMail:
type: string
defaultValue: ''
ui:
label: 'Empfänger E-Mail Adresse'
reloadIfChanged: TRUE
inlineEditable: TRUE
inspector:
group: 'add'
At this point iam stuck. I want to use the backend data from the inspector in the email-finisher.
Is it possible to get the inspector-data into the yaml-file?
Permanent-contact-form.yaml:
finishers:
-
identifier: 'TYPO3.Form:Email'
options:
templatePathAndFilename: resource://permanent.contact/Private/Templates/Email/Message.txt
subject: Kontaktformular - Anfrage von DevNeos
recipientAddress: '{recipientMail}'
recipientName: 'Damian Buecker'
senderAddress: '{email}'
senderName: '{firstname}{lastname}'
replyToAddress: '{email}'
format: plaintext
Or is there a better way to archive this ?
Thanks in advance.
Damian