本文整理汇总了C#中Utility.sendNoticeEmail方法的典型用法代码示例。如果您正苦于以下问题:C# Utility.sendNoticeEmail方法的具体用法?C# Utility.sendNoticeEmail怎么用?C# Utility.sendNoticeEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility.sendNoticeEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: sqlds_submitLevelUpdate_Updated
protected void sqlds_submitLevelUpdate_Updated(object sender, SqlDataSourceStatusEventArgs e)
{
/********/
//Evaluates the Return Value of a Level update from sql datasource control "sqlds_submitlevelupdate" if error display error link for popup reporting
/********/
string errormessage = e.Command.Parameters[0].Value.ToString();
if (errormessage == "102")
HL_Errors.Visible = true;
if (errormessage == "0")
{
String receivers = String.Empty;
GK3_Driver gk3 = new GK3_Driver();
SqlDataReader dr = gk3.get_Email_Notice_List(Convert.ToInt32(hf_Accountability_Id.Value));
if (dr.HasRows)
while (dr.Read())
{
if(receivers.Trim() == "")
receivers += dr["txt_email"].ToString();
else
receivers += ", " + dr["txt_email"].ToString();
}
Utility u_Obj = new Utility();
String body = String.Empty;
if (ddl_Acct_Next_Level.SelectedValue.ToString() == "101" && hf_Level_Id.Value.Trim() == "100")
{
body = "The Perkins Data Management System is now open for submission of the 2012 Annual Performance Report. Log on to https://www.sctechsystem.edu/perkins to complete required narrative and data components. The report is due on November 18, 2012. Detailed reporting instructions are available on the Perkins T-Web site at https://tweb.sctechsystem.edu/groups/perkins/accountability/default.aspx.";
u_Obj.sendNoticeEmail("Perkins-Accountability Email Notifications", body, receivers);
}
if ((ddl_Acct_Next_Level.SelectedValue.ToString() == "102" && hf_Level_Id.Value.Trim() == "101") ||
(ddl_Acct_Next_Level.SelectedValue.ToString() == "102" && hf_Level_Id.Value.Trim() == "103"))
{
body = "Attention Needed: The " + ddl_fiscalyear.SelectedValue + " Perkins IV Accountability report for " + ddl_College.SelectedItem.Text.ToString() + " has been submitted for your review/approval. https://www.sctechsystem.edu/perkins";
u_Obj.sendNoticeEmail("Perkins-Accountability Email Notifications", body, receivers);
}
if (ddl_Acct_Next_Level.SelectedValue.ToString() == "103" && hf_Level_Id.Value.Trim() == "102")
{
body = "Attention Needed: The System Office has requested revisions to the " + ddl_fiscalyear.SelectedValue.ToString() + " Perkins IV Accountability report for " + ddl_College.SelectedItem.Text.ToString() + ". Please log in to the Perkins DMS to review the System Office notes and resubmit the report once revisions are made. https://www.sctechsystem.edu/perkins.";
u_Obj.sendNoticeEmail("Perkins-Accountability Email Notifications", body, receivers);
}
}
}