Questions tagged [attachment]
The attachment tag has no usage guidance.
43
questions
0
votes
0answers
79 views
+100
Upload multiple attachments for product in magento2
I have a requirement to upload multiple attachments(pdf) for a product.
used the following code to achieve the functionality.
Vendor/Module/Setup/Patch/Data/Addfileattribute.php.
<?php
namespace ...
20
votes
6answers
15k views
9
votes
6answers
8k 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 ...
0
votes
1answer
28 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('...
7
votes
5answers
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
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>
...
0
votes
0answers
25 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/...
0
votes
1answer
71 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="'{...
1
vote
0answers
43 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
25k 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?
0
votes
3answers
472 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
...
2
votes
2answers
631 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.
2
votes
4answers
7k 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
199 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
209 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 ...
2
votes
2answers
142 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
2answers
158 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
27 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
227 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
260 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
167 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
303 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
33 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
411 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
334 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
1k 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
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 ...
1
vote
1answer
366 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
601 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
259 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
276 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
491 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 (...
1
vote
0answers
266 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
1answer
104 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
133 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
781 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 ...