17 votes

order confirmation email not send in magento 2

If you have properly configured Magento 2 mailing systems, you may need to check below point: Got to Stores -> Configuration -> Advanced -> System Under Mail Sending Settings make sure ...
Kamal Singh's user avatar
5 votes

Magento 2 plugin for sending email when change customer's group

To send an email when customer group changes, I will recommend using events instead of using plugin. Why not recommending plugin for this kind of task ? Because we use plugin when we need to modify ...
amitshree's user avatar
  • 7,006
4 votes

Send custom email by using cron job magento2

create new module Vendor_Module create a new file crontab.xml at this location: app/code/Vendor/Module/etc/ and insert below code create new file Customemail.php at the location: app/code/...
shyopat's user avatar
  • 187
4 votes

How do I clear all tasks queued in the Magento Cron, specifically emails?

There are a few things you can do. The first thing is to clear the email queue table. The is stored in the core_email_queue table so truncating this table should clear the backlog of emails along ...
Colin Murphy's user avatar
4 votes

order confirmation email not send in magento 2

This will work. The transportbuilderbystore class has already been deprecated in 2.3 and soon will be in 2.2. Fixed in Magento 2.2.7. Fix: vendor/magento/module-sales/Model/Order/Email/SenderBuilder....
Pratik Mehta's user avatar
3 votes

Add multiple recipients contact us from

You will need to extend the framework. Each email needs to be individually added as a destination address. I do this for CC address in this extension https://github.com/DominicWatts/EmailCC/blob/...
Dominic Pixie's user avatar
3 votes

Magento cron doesnt send email at all

Try this, I think it'll work. in the file app/code/core/Mage/Sales/Model/Order.php Change $mailer->setQueue($emailQueue)->send(); to $mailer->send();
Shafeeque S's user avatar
3 votes

Which event capture mail sending information in magento 2

You need to overwrite the Magento\Framework\Mail\Transport class. Create file app/code/Foo/EmailLogger/etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Atish Goswami's user avatar
2 votes

Magento 2: SMTP Email gives error "Invalid sender data"

You have to replace ->setFrom('[email protected]', $storeScope) to ->setFrom('[email protected]') in above code, Becasue setFrom method is not supported two arguments. Check core function for this, ...
Rakesh Jesadiya's user avatar
2 votes

Email template is not defined when try to send custom email

Fill your email template default config value in etc/config.xml file with email template id which has been defined in etc/email_templates.xml file. in your case: app/code/Blob/Withdrawal/etc/...
Idham Choudry's user avatar
2 votes

Send attachments via email

Hi try below code it will work for you. $mailTemplate = Mage::getModel('core/email_template'); $dir = Mage::getBaseDir(); $attachments = $dir.DS.'media'.DS.'customdir'.DS.$imagename; if(...
shyam's user avatar
  • 461
2 votes

send a Confirmation email when customer has login successfully

I think the error is with your code where you get customer from session. You are trying to get customer by code $customer = Mage::getSingleton('customer/session')->getCustomer(); But you will not ...
Jaimin Sutariya's user avatar
2 votes

Mail function fails

I think the problem is not in Magento itself, but is in between PHP and your OS. I'm going to try to answer it anyway. The PHP mail() function accepts the following arguments (from PHP.net/mail): ...
7ochem's user avatar
  • 7,532
2 votes

How to use the miscrosoft graph mail api instead of default magento mail?

For MS graph mail need to use php library class. composer require microsoft/microsoft-graph Please the refer the below link. That module using similar method. You need to intercept the email transport ...
Poongudivanan Natarajan's user avatar
2 votes

Magento 2.3.2 email sending code not working in Magento 2.3.3

You can remove array from addTo([$sendTo]) function. If you'll remove that and add only single email address there then it will work. <?php namespace Vendor\Modulename\Observer; use Magento\...
Kishan Savaliya's user avatar
1 vote

Magento 2.2.8: How to solve the message “Unable to send email”?

First check if your server's email is working. If its local system than you have to install SMTP module to send email. check below code at root of magento by creating new file. and run url like: ...
Dinesh Rajput's user avatar
1 vote

Magento 1.9 getCompanyName from registration form field

You can try to get it from POST request. Mage::app()->getRequest()->getParam('your_field_name')
olkuznw's user avatar
  • 146
1 vote

Email No body specified

Issue is in template id.. Template does not set properly.That why it is showing error. If you have define email from email_templates.xml then <?xml version="1.0"?> <config xmlns:xsi="http:...
Amit Bera's user avatar
  • 77.5k
1 vote

Magento 1.9 sendTransactional() doesn't include CSS from email template

I found it out. It has to include ->setDesignConfig() So the following code will include CSS file when sending out emails with sendTransactional(). Mage::getModel('core/email_template') -...
Magento Learner's user avatar
1 vote

Override abstract class Sender class in magento 2.1.4

You can not override a protected function in an abstract class, either using preference or plugin. Like others have mentioned, you have to override the function in the derivative class. Only Public ...
Yohanes Pradono's user avatar
1 vote

How to send new order emails through SMTP Pro using Observer

go to app/code/local/Mage/Core/Model/Email/Template.php line line 407 put if (!($this->hasQueue()) && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)
Jigs Parmar's user avatar
  • 2,438
1 vote

How can I send Email By TransportBuilder

$this->state->emulateAreaCode( \Magento\Framework\App\Area::AREA_FRONTEND, [$this->dataHelper, 'sendExportedEmail'], [$rule, $csvFile] ); I use this code, you cron tab env maybe ...
loko's user avatar
  • 31
1 vote

How to pass extra parameter to mail function from magento

If you magento is using sendmail to send an email, you can find the mail() function in Zend_Mail_Transport_Sendmail. Check the method public function _sendMail(). You can find this file in lib/Zend/...
Nidheesh's user avatar
  • 1,048
1 vote

How to attached pdf in order email?

Install this extension will help you. Set Attach Order As Pdf to Yes in system > configuration > Sales Emails
Prashant Valanda's user avatar
1 vote

Magento Order Email Notification not sent to admin sometimes

Since Magento 1.9.1.x, Magento transactional emails (orders, invoices...) are being sent by queue. And this queue process is handled by cronjob. You have to make sure that your cronjob is up and ...
Toan Nguyen's user avatar
  • 3,049
1 vote

Which method is used in Magento Enterprise to send new order emails

Your code seems fine, configure cron on Magento. Now order emails are sent using cron.
Phoenix128_RiccardoT's user avatar
1 vote

Magento SendMail with attachment

Copy this code in any phtml or controller to send mail with attachment file: $mailTemplate = Mage::getModel('core/email_template'); $mailTemplate->setSenderName('Sender Name'); $...
Prince Patel's user avatar
  • 22.7k

Only top scored, non community-wiki answers of a minimum length are eligible