아웃룩 오픈 긴능 추가
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user