Update 20250206

This commit is contained in:
Stefan Hutter
2025-02-06 22:23:45 +01:00
parent 678e0622fd
commit c316b40507
87 changed files with 995 additions and 576 deletions

View File

@@ -91,10 +91,11 @@ namespace OnDocAPI_NetFramework.Controllers
s = s.Replace("$$body$$", message);
string debugdir = System.Configuration.ConfigurationManager.AppSettings["DebugDir"];
string tmpfile = debugdir + @"\Mail_" + DateTime.Now.ToString("yyyyMMdd_hhmmss") + ".ps1";
StreamWriter writer = new StreamWriter(tmpfile);
writer.Write(s);
writer.Close();
writer.Dispose();
System.IO.File.WriteAllText(tmpfile, s);
//StreamWriter writer = new StreamWriter(tmpfile);
//writer.Write(s);
//writer.Close();
//writer.Dispose();
System.Diagnostics.Process.Start("powershell.exe", tmpfile);
APILogging.Log((HttpRequestMessage)Request, "Mail Versand: " + s, LogLevelType.Debug);
//return Content(HttpStatusCode.OK, "Mail versand noch nicht implementiert");