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