Questions tagged [attachment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

Add image attachment on already existed default shipping email magento 2.4

I am trying to add the image as an attachment along with the shipping email when a customer is notified like this $this->_shipmentNotifier->notify($orderShipment); can anyone have any ...
user avatar
  • 1,321
0 votes
1 answer
97 views

Magento 2 TransportBuilder Uncaught Error: Call to a member function createAttachment() on null

Magento 2.4.2 I am trying to send an attachment in the mail but getting Uncaught Error: Call to a member function createAttachment() on null in /Vendor/Module/Model/Mail/Template/TransportBuilder.php:...
user avatar
0 votes
1 answer
100 views

Magento 2.4 - Send email with attachments

I am trying to send the emails with the attached files but I am not succeeding. For the moment this is my code: <?php namespace PHPCuong\CustomerAccount\Helper; use Magento\Framework\App\Helper\...
user avatar
  • 285
0 votes
1 answer
110 views

How to add Attachment is mail in version 2.4.x?

The Magento 2.3.x versions use the Zend Framework 2. The implementation of various functionalities is different from the previous versions as it refuses to apply Zend Framework 1 (ZF1). In Magento2.4....
user avatar
  • 561
1 vote
1 answer
222 views

Magento 2.4 How to send attachement in email?

In Magento 2.3 we override below file and add "addAttachment" Method. But in Magento 2.4 I don't know how to send attachment?? anyone knows?? \Magento\Framework\Mail\Template\...
user avatar
  • 2,421
0 votes
0 answers
15 views

Link specific file with the corresponding product

I have a huge list of products ( simple products) that all have a unique attachment. It is possible to add them manually and manage them with a plugin, but I was wondering if there is a more efficient ...
user avatar
0 votes
1 answer
74 views

Add attachments to a contact us form

I'm looking for a solution to allow to add attachments to a contact us form. I tried this module https://github.com/vijayrami/Magelearn_ContactAttachment but it doesn't work well. PDF is not being ...
user avatar
0 votes
1 answer
74 views

How can I attach files to a Contact Us form?

I am trying to create a contact us form with the following fields and file attachments on Magento 2.3.2: <?php // @codingStandardsIgnoreFile ?> <?php $themeHelper = $this->helper('...
user avatar
0 votes
1 answer
644 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="'{...
user avatar
1 vote
1 answer
528 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. ...
user avatar
  • 161
1 vote
2 answers
328 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 ...
user avatar
  • 934
0 votes
2 answers
247 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-...
user avatar
0 votes
0 answers
52 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
user avatar
  • 1
0 votes
1 answer
446 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 ...
user avatar
  • 87
0 votes
2 answers
385 views

Magento 2.3 send an email with PDF Attachment

please help me out of sending an email with a PDF attachment.
user avatar
1 vote
2 answers
737 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 ...
user avatar
0 votes
1 answer
375 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 ...
user avatar
0 votes
0 answers
43 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 ...
user avatar
1 vote
0 answers
51 views

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

custom email send createAttachment() method is not working how to solve?
user avatar
1 vote
0 answers
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
user avatar
  • 21
0 votes
1 answer
661 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 ...
user avatar
2 votes
2 answers
234 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->...
user avatar
4 votes
3 answers
3k 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\...
user avatar
2 votes
2 answers
883 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.
user avatar
  • 29
4 votes
1 answer
2k 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(); $...
user avatar
  • 1,682
2 votes
5 answers
4k 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 ...
user avatar
2 votes
4 answers
8k 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\...
user avatar
9 votes
6 answers
12k 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::...
user avatar
4 votes
1 answer
389 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 ...
user avatar
  • 409
0 votes
3 answers
652 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 ...
user avatar
7 votes
5 answers
5k 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="...
user avatar
1 vote
0 answers
273 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 ...
user avatar
0 votes
1 answer
288 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::...
user avatar
1 vote
1 answer
541 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 (...
user avatar
  • 529
0 votes
0 answers
295 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 ...
user avatar
  • 109
1 vote
2 answers
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> ...
user avatar
1 vote
1 answer
107 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, ...
user avatar
  • 511
11 votes
10 answers
32k 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?
user avatar
  • 111
7 votes
2 answers
2k 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 ...
user avatar
23 votes
7 answers
22k views

Magento 2: send email with Attachment

How to send email with a file attachment.
user avatar
  • 1,180
0 votes
1 answer
2k 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 ...
user avatar
1 vote
1 answer
609 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 ...
user avatar
  • 35
0 votes
1 answer
143 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?
user avatar
3 votes
2 answers
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 ...
user avatar
  • 317
2 votes
1 answer
804 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 ...
user avatar
  • 7,465
2 votes
1 answer
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 ...
user avatar
  • 88
1 vote
1 answer
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::...
user avatar
  • 21
1 vote
1 answer
434 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 ...
user avatar