public AmazonSesMailDispatchService(
     MailSettings mailSettings,
     AmazonSesSettings sesSettings,
     IPathResolver pathResolver
     )
 {
     _mailSettings = mailSettings;
     _sesSettings  = sesSettings;
     _pathResolver = pathResolver;
 }
コード例 #2
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));
            }
        }