Hello, i updated grav with all plugins to latest version and now, sending uploaded file from from as email attachement is not working, i receive email without any attachments. This is my page with form:
title: Form page
form:
name: email-form
fields:
- name: message
label: 'write message
placeholder: 'your message...'
type: textarea
validate:
required: true
- name: email
label: 'e-mail'
placeholder: 'e-mail address'
autocomplete: 'off'
type: email
validate:
required: true
- name: attachfile
label: 'Attach file'
type: file
multiple: false
avoid_overwriting: true
buttons:
- type: submit
value: 'send'
- type: reset
value: 'resettt'
process:
- email:
from: '{{ config.plugins.email.from }}'
to: ['{{ form.value.email }}']
subject: 'Sample mail'
body: '{% include ''forms/data.html.twig'' %}'
attachments: [attachfile]
- message: 'Message was sent'
I am using antimatter theme, but the theme is not updated for support with forms 2.0 so i added {% include "forms/fields/formname/formname.html.twig" %} like it is in plugin's template. Can you help me? Thanks