I need to add an "attachment" to an email sent by Craft CMS 3.
I used a custom "Module" for this with a "Model", "Service", "Record" and "Controller"
I did some research but did not find any clear answers on how to do it.
How to send a email with an attachment?
---- Update -----
Here's what I need to do
Person A Fill the form with file a file ( like doc, pdf etc... )
Prepare the email with the custom "module"
Do I have to upload the file somehow on the server before do the attachement in the email ?
Send the email with the file in attachement to Person B