Ejemplo n.º 1
0
 public AuditableMailDispatchSession(
     MailSettings mailSettings,
     IPathResolver pathResolver
     )
 {
     _wrappedInstance = new DebugMailDispatchSession(mailSettings, pathResolver);
 }
Ejemplo n.º 2
0
    public SendGridMailDispatchSession(
        Core.Mail.MailSettings mailSettings,
        SendGridSettings sendGridSettings,
        IPathResolver pathResolver
        )
    {
        _mailSettings     = mailSettings;
        _sendGridSettings = sendGridSettings;

        if (_mailSettings.SendMode == MailSendMode.LocalDrop)
        {
            _debugMailDispatchSession = new DebugMailDispatchSession(mailSettings, pathResolver);
        }
        else
        {
            _sendGridClient = new SendGridClient(_sendGridSettings.ApiKey);
        }
    }
Ejemplo n.º 3
0
        public AmazonSesMailDispatchSession(
            MailSettings mailSettings,
            AmazonSesSettings AmazonSesSettings,
            IPathResolver pathResolver
            )
        {
            _mailSettings      = mailSettings;
            _AmazonSesSettings = AmazonSesSettings;

            if (_mailSettings.SendMode == MailSendMode.LocalDrop)
            {
                _debugMailDispatchSession = new DebugMailDispatchSession(mailSettings, pathResolver);
            }
            else
            {
                _AmazonSesClient = new AmazonSimpleEmailServiceClient(_AmazonSesSettings.AccessKey,
                                                                      _AmazonSesSettings.SecretKey,
                                                                      RegionEndpoint.GetBySystemName(_AmazonSesSettings.AwsRegion));
            }
        }