Questions tagged [attachment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Exception #0 (Exception):Array to string conversion …/framework/App/Config.php on line 84 MagePrince productAttachement

Magento 2.1.9 CE Installed latest compatible extension productAttachemnt from MagePrince. Exception #0 (Exception): Notice: Array to string conversion in /var/www/vhosts/.../httpdocs/vendor/magento/...
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 ...
0
votes
1answer
31 views

How to add a link in Order email template in Magento 2.3.3

Here i am trying to attach a dynamic link with every order in order email template. for eg: <a href="pub/media/000001.pdf">Download Pdf</a> And i have troied <a href="{{media url="'{...
7
votes
4answers
3k 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
41 views

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

custom email send createAttachment() method is not working how to solve?
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?
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::...
0
votes
3answers
416 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 ...
3
votes
2answers
505 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.
19
votes
6answers
13k views

Magento 2: send email with Attachment

How to send email with a file attachment.
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
99 views

Magento2: create pdf file option in product details page

I need an option to select the chose upload file (pdf) from admin site and that file will visible and have a download option for users On the product details page on frontend. below is sample images. ...
1
vote
2answers
180 views

Magento 2 Add attachment in email not working for multiple store

I am trying to send an attachment with Order success email. I have 2 store default and custom. In default store attachment is working perfectly but in custom store. Email not sent. After debugging I ...
0
votes
0answers
35 views

Magento 1.9.4.3. - Upload multiple files in checkout onepage

I'm looking for a custom module that allows me to: Load more than one logo at checkout Confirm the upload of the logo and send the files to my email when the customer clicks on "confirm order" Save ...
2
votes
2answers
129 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->...
0
votes
0answers
52 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
129 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
26 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
179 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
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 ...
0
votes
2answers
125 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
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
0answers
31 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 ...
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 ...
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
0answers
16 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
1answer
339 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 ...
4
votes
1answer
303 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 ...
4
votes
1answer
665 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(); $...
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 ...
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 ...
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
600 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 ...
1
vote
0answers
251 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 ...
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::...
0
votes
1answer
268 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
480 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
247 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
101 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, ...
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 ...
0
votes
1answer
128 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?
2
votes
1answer
770 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 ...