How do you send an email in Shopware 6 controller?

  e-commerce, email, php, shopware, symfony

In Shopware 5 there was a mail->send() function which was sending an email with the desired template and content.
What is the name of the function in Shopware 6?

P.S. I see some files which I think are the ones needed, some examples of mail sending would be welcomed.

ShopwareCoreContentMailTemplateServiceMessageFactory.php
ShopwareCoreContentMailTemplateServiceMailSender.php

Source: Symfony Questions

LEAVE A COMMENT