Linked Questions

24 votes
7 answers

Magento 2: send email with Attachment

How to send email with a file attachment.
Bhavik's user avatar
  • 1,240
0 votes
2 answers

Missing required argument $to of Magento\\Framework\\Mail\\EmailMessage. Magento 2.3.4

I was sending custom emails in magento version 2.3.2 successfully with below code: $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORE; $stroreid = $this->_storeManager->...
Ajwad Syed's user avatar
  • 1,591
0 votes
1 answer

How do I send a email from the cron job? Magento 2 Unable to send mail

I did create a cron job with custom sql query. It will send an email notification to our support email. Can someone tell me what's wrong my email coding, from the log it said I am unable to send mail?...
Paul Fan's user avatar
  • 658
0 votes
1 answer

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\...
Jackom's user avatar
  • 493
0 votes
3 answers

Magento 2: How to override file Mail.php

I want to override this file :vendor\magento\module-contact\Model\Mail.php vendor/module/Model/Mail.php <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for ...
MichaelHa's user avatar
  • 661
0 votes
0 answers

Send csv file on email in Magento 2.4.0

I am generating order report in csv and saving that file in Var folder. Now i want to send that file on email without using any email template. How to i can send that file on email ? Kindly check ...
Wajahat Bashir's user avatar
1 vote
2 answers

How to add a attachment to an email -Magento 2 [duplicate]

Does anyone know how to add an attachment to an email , The add attachment method in the transport builder is deprecated.
Kereshan Droptop Naidoo's user avatar
0 votes
2 answers

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
prabhakaran7's user avatar
  • 1,087
0 votes
1 answer

How to send inquiry email to customer on admin reply in magento2.4.3

Hello all magento developers, I want to send inquiry email notification to customer when admin can add reply to customer inquiry in magento 2.4.3. can anyone have idea then please share here, Thank ...
Deep Shah's user avatar
  • 565
0 votes
2 answers

Received email pdf display no name

i have created custom form module that send the email with pdf, attachment sends but in email it shows no name, in image it shows error, My Code.......... TransportBuilder.php app/code/Vendor/Module/...
Rushikesh Solanki's user avatar
0 votes
0 answers

How to add pdf in mail in Magento2.4.3?

I tried almost all solutions from the internet but nothing works in magento 2.4 and above. for pdf attachment in mail If Anyone knows how to attach pdf in mail. Please share your answer. Thanks.
Mani's user avatar
  • 393
0 votes
1 answer

Send the Email attachment in the Email

I need to attach HTML file. I have dynamic HTML content and attach the HTMl content in the email
Divya 's user avatar
  • 412
1 vote
1 answer

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 ...
Rutu Shah's user avatar