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
0
votes
0answers
13 views

Error while sending emails with attachment in Magento 2.3

I'm using magento 2.3 and using following module to send attachment in email. https://github.com/extait-com/email-attachment When using on local machine I'm able to send email with attachment but ...
0
votes
2answers
42 views

Email Attachment is not work for magento 2.3.1

I have try to send email with PDF attachment but not work in magento 2.3.1. I am looking for some reference link: https://magento.stackexchange.com/questions/104044/magento-2-send-email-with-...
0
votes
0answers
21 views

Magento 2.3 - How to Attach file to welcome email

How do we send the welcome email with a file attached to it in magento 2.3. I've found "Fooman Email Attachments", but it doesn't let me attach file to welcome email
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 ...
0
votes
2answers
40 views

Magento 2.3 send an email with PDF Attachment

please help me out of sending an email with a PDF attachment.
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 ...
0
votes
1answer
46 views

issue in magento 2.2.8 send multiple attachment in single mail

I have installed https://github.com/manishjoy1993/email-attachment extesnion in my magento 2.2.8 version. Everthing is fine but I can not send multiple attachment in single mail. For multiple ...
0
votes
0answers
25 views

magento 2.2.8: mail attachment not working

I have installed email attachment extension https://github.com/manishjoy1993/email-attachment in magento 2.2.8 version and it throw some errors. Errors mentioned in following image. And there are ...
1
vote
0answers
31 views

Magento 2.3.2 custom email send createAttachment() method is not working

I am fresher in Magento 2.3.2, custom email send createAttachment() method is not working how to solved ? Thanks in advance.
1
vote
0answers
12 views

How to print order attachment along with the invoice

Can you tell me how I can print all custom attributes an order has programatically? and the file to edit the code, I have tried object manager, sales
0
votes
0answers
22 views

I want all order attachment to print once I “print all” with the invoice in magento sales grid: M2.3

On the Magento2.3 sales grid, there is a dropdown tab that says "Print All". When I select this, not only do I want the order invoice to print, I also want all the order attachments to print. The ...
0
votes
1answer
106 views

Magento 2.3 : How to attach csv file in email?

How do we send email with attachments in magento 2 ? And file type be like .csv Previously it was working when we were in 2.2x but after been upgrading to 2.3 it causing issues in attachments. And ...
2
votes
2answers
46 views

Magento 2 - Email attachment is not working in my controler

Here is my code. $pdfFile = 'pub/pdf/13_rajeshnagappan2016@gmail.com.pdf'; $store = $this->_storeManager->getStore()->getId(); $transport = $this->_transportBuilder->...
3
votes
2answers
293 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\...
3
votes
2answers
132 views

How to send transactional mail with attachment in magento 2.3

How can I send email with attachment in magento 2.3.I already tried the way of custom TransportBuilder class from many answer but not working at all.I'm new to magento pls help me.
4
votes
1answer
144 views

Attach invoice pdf to custom e-mail in magento 2

I created a custom email and it's working fine like this: $data['amount'] = round($amount); $data['customer_name'] = $customer->getFirstname() . ' ' . $customer->getLastname(); $...
0
votes
4answers
538 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 ...
1
vote
4answers
3k 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\...
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::...
4
votes
1answer
203 views

Error attach pdf to invoce e-mail

I tried to send an invoice email from frontend with pdf attached, by extending InvoiceSender like this: namespace Namespage\Module\Model\Plugin\Order; use Magento\Sales\Model\Order\Invoice; use ...
0
votes
2answers
260 views

Magento 2.2 Override Sales Invoice attachment files

We need to override following files in custom module. /data/magento2/vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php /data/magento2/vendor/magento/module-sales/Model/Order/Pdf/Invoice.php ...
7
votes
4answers
2k views

Magento 2 : Dynamic PDF and image attachement with order email

I need to attach PDF and images with order email. I have dynamic PDF and image path which is stored in quote_item table. I have debugged code to attach image/PDF to order email. <preference for="...
1
vote
0answers
211 views

Send email with attachment (1.9.3.4)

For various reasons I am currently forced to work in: /app/code/local/Mage/Sales/Order.php I know it's not ideal, but it's required at the moment. in public function queueNewOrderEmail, I am looking ...
0
votes
1answer
241 views

Add Attachment In Magento Email Model

i would like to add the Attachment using below Magento model. i have tried to add $mail->getMail()->createAttachment( file_get_contents($fileName), //location of file Zend_Mime::...
1
vote
1answer
421 views

Save Uploaded images to current order table

I am Creating an image attachment for each order in admin panel. I have used the image up loader and saved that images to a custom directory as follows: public function uploadAction() { if (...
0
votes
0answers
170 views

How to insert fastly an attachment as a pdf file in a product page?

Magento 1.9.0.1 I would like to add a pdf file to download in a product page. In the product description (long or short) there's WYSIWYG editor. In this editor there are command to insert: images ...
1
vote
2answers
2k views

magento send email with PDF attachment

I face one issue with createAttachment method. This method attached pdf but pdf not open and its size is zero kb. $html .= " <html> <head> </head> ...
1
vote
1answer
93 views

Email attachment

I've recently created a page on our site where users can upload an image and email it to an email address set up specifically to keep the uploaded documents. I've tested this myself and it works, ...
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?
7
votes
2answers
1k views

Magento 2 - Generate customization image in product page and add it to product options in cart

I need to let users create a customization image in product page and than attach that image to product when users add product in cart. Create a custom product option type seems to be very tricky. I ...
16
votes
6answers
8k views

Magento 2: send email with Attachment

How to send email with a file attachment.
0
votes
1answer
1k views

How to send transactional mail with csv/excel attachment in magento 2

How can i send transactional mail with csv/excel attachment in magento 2? below is my code: use Magento\Framework\ObjectManagerInterface; use Magento\Framework\Mail\Template\FactoryInterface; use ...
1
vote
1answer
594 views

Attach pdf with Email Copy of shipment

I want a pdf to be attached with the mail which is sent when I ship my order and tick the option 'Email Copy of shipment'. pdf should contain same content as mail, as only those items list from the ...
0
votes
1answer
125 views

Print order attachment in magento order mass action

I have an extension of order attachment installed in my magento 1.7. What I need to do is to have an option in mass action of order grid to print order attachment. How can I do that?
3
votes
2answers
2k views

Attach a file on contact form

I've been trying to attach a file on the contact page. I found a really good guide where I took code from: Attach a file in contact form. I didn't modify the xml because i just modified my ...
2
votes
1answer
711 views

Custom html content for core/email_template

I'm using Magento's core/email_template model to send an email (as opposed to core/email as I want to add an attachment). I already have a $html variable which I would like to set as the body. Is ...
2
votes
1answer
2k views

Attaching multiple PDF to an email

Im trying to send the sales order email with three attached PDF files. At first i need to attach the terms/conditions for b2b and b2c but the cancellation policy also. I searched a while and just ...
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
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 ...