Plugin that sends user‑related email notifications in Saleor.
# Source: https://github.com/saleor/saleor | License: BSD-3-Clause | Copyright 2020-2023, Saleor Commerce
# Provided via justclaw.it.com; keep this notice with the code.
import logging
from collections.abc import Callable
from dataclasses import asdict
from typing import TYPE_CHECKING
from django.conf import settings
from promise.promise import Promise
from ...core.notify import NotifyEventType, UserNotifyEvent
from ...graphql.plugins.dataloaders import EmailTemplatesByPluginConfigurationLoader
from ...plugins.models import EmailTemplate
from ..base_plugin import BasePlugin, ConfigurationTypeField, PluginConfigurationType
from ..email_common import (
DEFAULT_EMAIL_CONFIG_STRUCTURE,
DEFAULT_EMAIL_CONFIGURATION,
DEFAULT_EMAIL_VALUE,
DEFAULT_SUBJECT_HELP_TEXT,
DEFAULT_TE
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key