public async Task ExecuteAsync(string smtpUser, string smtpPass, string from, string to, string cc, string username, string password) { var client = await Account.SignIn(username, password); var appts = await Appointments.GetAppointmentsAsync(client, DateTime.Now); var buffer = FormatAppts(appts); var fileName = GetFileName(); await Emailer.EmailScheduleAsync(smtpUser, smtpPass, from, to.Split(';', ' ', ',').Where(s => !string.IsNullOrEmpty(s)).ToArray(), cc.Split(';', ' ', ',').Where(s => !string.IsNullOrEmpty(s)).ToArray(), $"CCA Schedule for {DateTime.Now:d}", buffer, fileName, buffer); }