Questions tagged [email-attachment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 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\...
0
votes
0answers
22 views

Magento 2: Order Information Attachment with Order Email

I have created a module which is used to send order information as attachment in order email like invoice attachment in invoice mail. I got order attachment in order email but I can't get Order items ...
1
vote
1answer
96 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\...
1
vote
1answer
24 views

Email Attachment not working in Magento 2.2.6

I am using Magento version 2.2.6 and trying to send custom email with attachment, but I am getting 500 error. I tried transportbuilder addattachment which is working in Magento 2.3.x and onwards. But ...
0
votes
0answers
243 views

How to attach file in email in magento 2.3.5-p2 laminas

i want to attach file in email magento 2.3.5-p2 now they removed Zend Framework now they are using laminas how i can attach file in email? in previous versions i have used this code to work with but ...
0
votes
2answers
103 views

Email Attachment not working in magento 2.3.4 contact us email

I'm using magento 2.3.4 i customized contact us magento 2 module(Magento_Contact) i want to Attach file in Email i followed this blog post https://meetanshi.com/blog/add-attachments-with-email-in-...
0
votes
2answers
234 views

Magento 2.2.11 - How to add attachment to an email, Call to undefined method Magento\Framework\Mail\Message\Interceptor::createAttachment() error

I have installed the pdf invoice Extension in Magento 2.2.11. I'm getting this error while placing the order, Call to undefined method Magento\Framework\Mail\Message\Interceptor::createAttachment() ...
0
votes
1answer
566 views

How add file to email message in Magento 2.3.5?

I'm trying to do so Create di.xml file at app/code/vendor/module/etc/ <preference for="\Magento\Framework\Mail\Template\TransportBuilder" type="Vendor\Module\Model\Mail\Template\TransportBuilder" ...
0
votes
1answer
116 views

Issue in sending attachment in Emails Magento2.3

I am trying to send attachments in the email. The following code is working fine but multiple attachments are sending even if send single attachment also. I have used below code. $attribute = $...
0
votes
0answers
20 views

How to add custom Email attachment with .html format

I have to add the email attachment. I have create a custom module public function execute() { $post = $this->getRequest()->getPostValue(); if (!$post) { $this->_redirect('/')...
5
votes
1answer
1k views

Magento 2 Order Email With This Content =0D=0A=0D=0A=0D=0A =0D=0A

When order confirmation send all content contain this =0D=0A=0D=0A=0D=0A =0D=0A Here is email screenshot: app\Vendor\Extension\etc\di.xml <preference for="\Magento\Sales\Model\Order\Email\...
1
vote
1answer
513 views

Correct way to add attachment to email in magento 2.3.3+

From the release of new version of magento 2 come with some changes in code base I can't add attachment to email anymore. My case used new TransportBuilder class extend from origin Magento\...
1
vote
1answer
88 views

Magento 1.9 : send multiple images as attachements in Email

I have implemented send email in single image file as attachment. but now i want to send multiple images as attchment in email.How can i acheive that? if anyone can help me. I have tried below code ...