public void SendMail(TextFileData textFileData, List <Recipient> recipients) { File.WriteAllText(textFileData.FileName, textFileData.Text); var smtp = new Smtp(_credential); //smtp.SendMessage(); }
private void SaveTextFile() { _textFileData = new TextFileData($"{Environment.SpecialFolder.MyDocuments}attachment", "Here is some demo text!"); _textFileData.SaveTextFile(); }