The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [attachment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16
votes
6answers
8k views

Magento 2: send email with Attachment

How to send email with a file attachment.
6
votes
5answers
3k views

Magento 2.3 custom email attachment not working

Custom email attachment file is not working in magento 2.3. its working in Magento 2.2.X Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Mail\Message\Interceptor::...
8
votes
8answers
17k views

Magento2: How to enable pdf on wysiwyg to upload attachments to products?

Where can I edit the code to enable the pdf's or how can I do it on Magento 2 for uploading pdf attachments to products?
3
votes
2answers
294 views

Magento 2.3 email attachment not working while sending custom email

https://extait.com/blog/how-to-send-email-with-attachment-in-magento-2-3/ I have tried above link, and below is the code: Now I am receiving emails without attachment. Full code as below: Custom\...
1
vote
1answer
2k views

Attach invoice to shipment email

In /app/code/local/Mage/Sales/Model/Order/Shipment.php I added the following lines in sendEmail() funtion: $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice(); $pdf = Mage::...
1
vote
2answers
31 views

How can I send Image attachment in custom email from controller in Magento 2.3.0

I have created custom module for quotation in Magento2.3.0. Module is working as per requirement but I want to send an attachment also in the email which is not working. I am sending email from ...
1
vote
1answer
275 views

Play sample file as inline and files from my account as attachment

I am working on the downloadable products.i want my preview file on the frontend should play and customers should able to download the products from their account from my downloadable products. I ...
0
votes
1answer
44 views

Magento 2 : addAttachment is not working

I was lots of tries to send the attachment to mail but no luck. Please check my below code and please correct me where I am wrong. <?php /** * KiwiCommerce * * Do not edit or add to this file ...