I want to give users option to upload a file in magento2 contact form and recieve it in the email as attachment. How to do that? Please guide.

2 Answers 2


upload field in contact form and include it in contact email template.

This will help you to achieve

  • The link you posted is about Magento 1
    – Black
    Dec 15, 2020 at 13:21

You can Refer below link and create a module:-


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.