Magento Expert Forum - Improve your Magento experience
-
How to Programmatically Attach PDF File in Magento 2 Email
For Magento 2 stores, generally, Emails are sent for various purposes such as invoice, billing, coupon codes, etc. that require to attach PDF files. Manually attaching files for these tasks is not feasible. Instead, programmatically attach a PDF file in Magento 2 Email!
Method to Programmatically Attach PDF File in Magento 2 Email:
- Create your TransportBuilder class, Vendor/Extension/Model/Mail/TransportBuilder.php
- Create sample Email Sending Helper, Vendor/Extension/Helper/Data.php
For the detailed method, visit https://meetanshi.com/blog/programma...gento-2-email/
View more threads in the same category:
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks