Send sprout email programmatically

I’m trying to send a sprout email from my plugin like so: use barrelstrength\sproutbaseemail\mailers\DefaultMailer; use barrelstrength\sproutbaseemail\SproutBaseEmail; use barrelstrength\sproutbaseemail\elements\NotificationEmail; use Craft; use craft\base\Plugin; use yii\base\Event; class MyPlugin extends Plugin { public function init() { $mailer = SproutBaseEmail::$app->mailers->getMailerByName(DefaultMailer::class); // How do I let it know what email to send? $mailer->sendNotificationEmail(); } } It says that sendNotificationEmail expects…

Details

How do I add the extensions.gnome.org repository to dnf in Fedora 31?

In the GNOME Software application I can install extensions directly from extensions.gnome.org. It’s a repository there, as evident by this: However, this only appears in GNOME Software; the output of dnf repolist is as follows: repo id repo name fedora Fedora 31 – x86_64 fedora-modular Fedora Modular 31 – x86_64 rpmfusion-free RPM Fusion for Fedora…

Details

Woocommerce stratching images

how to disable image scaling? https://chromei.ru/stulya-obedennye/stul-obedennyj-buldog-m/ It’s 304×400 JPG pic stretched to 513×675, this is rubber picture. Bigger browser – bigger stratching. I don’t need this. This code is in functions.php of the template: function add_thumbnail_size($size){ $size[‘width’] = 200; $size[‘height’] = 200; $size[‘crop’] = 0; //0 – не обрезаем, 1 – обрезка return $size; }…

Details