magento2.3 – How to attach file in email in magento 2.3.5-p2 laminas

i want to attach file in email

magento 2.3.5-p2

now they removed Zend Framework now they are using laminas

how i can attach file in email?

in previous versions

i have used this code to work with but

now latest versions not working

How to Add Attachments with Email in Magento 2.3.x

any one have any source or blogs to solve this problem?