아웃룩 오픈 긴능 추가

This commit is contained in:
chikyun.kim
2018-09-27 08:21:00 +09:00
parent 30583ad369
commit 78f316bc3a
61 changed files with 3407 additions and 43 deletions

View File

@@ -439,6 +439,37 @@ namespace FCOMMON
si.Arguments = arg;
System.Diagnostics.Process.Start(si);
}
public static void RunDefaultMail(string to,string title,string content="",string cc="",string bcc="")
{
string args = "mailto:" + to + "?";
if (title != "") args += "subject=" + title;
args += "&IsBodyHtml=true";
if (content != "")
{
if (!args.EndsWith("?")) args += "&";
args += "HtmlBody=" + content;
}
if (bcc != "")
{
if (!args.EndsWith("?")) args += "&";
args += "bcc=" + bcc;
}
if (cc != "")
{
if (!args.EndsWith("?")) args += "&";
args += "cc=" + cc;
}
if (bcc != "")
{
if (!args.EndsWith("?")) args += "&";
args += "bcc=" + bcc;
}
System.Diagnostics.Process.Start(args);
}
#region "watchdog"
public static void WatchDog_Run()