diff --git a/edx_ace/__init__.py b/edx_ace/__init__.py index b18df1b..7854f1f 100644 --- a/edx_ace/__init__.py +++ b/edx_ace/__init__.py @@ -13,7 +13,7 @@ from .recipient import Recipient from .recipient_resolver import RecipientResolver -__version__ = '1.11.2' +__version__ = '1.11.3' __all__ = [ diff --git a/edx_ace/channel/__init__.py b/edx_ace/channel/__init__.py index 6d16a50..0cf7dd3 100644 --- a/edx_ace/channel/__init__.py +++ b/edx_ace/channel/__init__.py @@ -176,7 +176,9 @@ def get_channel_for_message(channel_type, message): channel_names = [] if channel_type == ChannelType.EMAIL: - if message.options.get('transactional'): + if message.options.get('override_default_channel'): + channel_names = [message.options.get('override_default_channel')] + elif message.options.get('transactional'): channel_names = [settings.ACE_CHANNEL_TRANSACTIONAL_EMAIL, settings.ACE_CHANNEL_DEFAULT_EMAIL] else: channel_names = [settings.ACE_CHANNEL_DEFAULT_EMAIL]