I have a problem with the Magento2 newsletter module, I need to edit the sendEmail function, there is the email variable in this function that takes the template, I need to change it according to customer group logic, but I cannot extend a module to edit or subscribe with after a model, could you help me?
I’ve already tried to extend the plugin with the after function but it didn’t work, I’ve tried using observer but I couldn’t.
William Oliveira – ESSENTIA DI is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.