Hi All,
I have created a model where I store the PDFs that need to be attached to the mail when the mail is fired.
model to store PDF
I'm sending the mail whenever a webform is submitted and want to attach all the pdfs that are available in that model.
function to send mail
what I'm doing wrong here?