public async Task SendAsync(string tenant)
{
string template = this.GetTemplate(tenant);
string parsed = this.ParseTemplate(template);
string subject = "Your Password Reset Link for " + HttpContext.Current.Request.Url.Authority;
var processor = EmailProcessor.GetDefault(tenant);
if (processor != null)
{
var email = this.GetEmail(processor, this._resetDetails, subject, parsed);
var queue = new MailQueueManager(tenant, email);
await queue.AddAsync().ConfigureAwait(false);
await queue.ProcessMailQueueAsync(processor).ConfigureAwait(false);
}
}