Example #1
0
        private async Task QueueMessage(MailMessage message) {
            CleanAddresses(message);

            await _queue.EnqueueAsync(message.ToMailMessage());
            _statsClient.Counter(StatNames.EmailsQueued);
        }
Example #2
0
        private void QueueMessage(MailMessage message) {
            CleanAddresses(message);

            _queue.Enqueue(message.ToMailMessage());
            _statsClient.Counter(StatNames.EmailsQueued);
        }