How do you send an email in Shopware 6 controller?

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

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *