0

How can I send 2 different email with different template (one for client and second for admin) from a single action in magento 2

  • you can do this through event observer but you have to select observer depend on your action like in which action (ex: customer registeration, new order etc) you need to send additional email. – Muhammad Hasham Mar 11 at 9:35
  • thanks, I am updating custom module (FAQ) and want to send email to both admin and client by using transportBuilder() but email is not sending – Waqar Mar 11 at 9:39
  • On your controller you would do something like this public execute() { $this->customerEmail(); $this->adminEmail(); } protected function customerEmail(){ //Customer Email } protected function adminEmail(){ //Admin Email } – Prathap Gunasekaran Mar 11 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.