In Magento 2.2, we used to use addAttachment($pdfString,$filename) to add CSV attachment in email.
File Path: \Magento\Framework\Mail\Template\TransportBuilder
But, In Magento 2.3.1 this method is deprecated.
There is no documented way to replace this functionality.
Below are the links which have been suggested. We tried but it did not work.
Comments:We tried addAttachment($pdfString,$filename) function but addAttachment() is deprecated in Magento 2.3.1
Comments:We have used Zend\Mail\Transport\Smtp as SmtpTransport to send email from our portal.
Email was triggered with CSV Attachment but first email was triggered 3 hours after executing cron and then every email has 1 hour delay in between
Comments:We tried with this solution but in transportbuilder file below mentioned files are not available in magento 2.3 framework Mail folder
Comments: we implemented this solution but emails are not getting triggered.