Attaching Emails To email-templates

Hello,

I am using OCmall Plugin. My customer want to send a pdf with every order. How can i attach this pdf to every order? is there any config i am missing or something?

@OFFLINE-TK

@ibrarartisan did you see Payments | Mall OctoberCMS Plugin ?

@OFFLINE-TK yes i saw that. but we have a finished document in pdf format. we want to add this to the order email. e.g a return pdf or something

You can use any of October’s mailer events to attach a custom file to the outgoing mails:
https://octobercms.com/docs/api/mailer/preparesend