Questions tagged [attachment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19
votes
6answers
13k views

Magento 2: send email with Attachment

How to send email with a file attachment.
7
votes
6answers
7k 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::...
2
votes
5answers
2k views

Magento 2.3: Add Attachment with email (Magento 2.3 use zendframework 2)

I am working on a module in which I need to attach an attachment with sales email. However, Magento 2.3 use zendframework2 so email attachment is not the same as zendframework1 (in Magento 2.2). Can ...
9
votes
9answers
23k 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?
4
votes
2answers
2k 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::...
2
votes
4answers
6k views

How to Add Attachment with email magento 2.3?

Can anyone help us on Add Attachment with email Magento 2.3? We have tried but face the same issue like this. Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Mail\Message\...
1
vote
1answer
341 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 ...
1
vote
2answers
163 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 ...
0
votes
1answer
193 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 ...