getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

File attachment not showing in mail and also i put validation file are valid but email not set that showing error. #131

Closed amicasepoint closed 1 year ago

amicasepoint commented 4 years ago

name: career-form class: abc fields:

        name: fullname
        label: 'Full Name'
        type: text
        autofocus: 'off'
        validate: null
    -
        name: emails
        label: Email
        type: email
        validate: null
    -
        name: file
        label: 'Choose file'
        type: file
        id: file_data
        accept:
            - image
            - pdf
buttons:
    -
        type: submit
        value: Submit
    -
        type: reset
        value: Reset
process:
    -
        email:
            from: '{{ config.plugins.email.from }}'
            to:
                - '{{ config.plugins.email.to }}'
            subject: '[ Aloola job request ] {{ form.value.name|e }}'
            body: '{% include ''forms/data.html.twig'' %}'
            attachments:
                - file
    -
        save:
            fileprefix: feedback-
            dateformat: Ymd-His-u
            extension: txt
            body: '{% include ''forms/data.txt.twig'' %}'
    -
        message: 'Thank you for your Job request!'
rhukster commented 4 years ago

Please format your YAML properly in a code block and i'll take a look.