I would like to include the Title.Text,CategoyId.SelectedItem.Text,EditAuthor.Text,StatusId.SelectedItem.Text, info in my email notification.
I am sending an email to the submitter of a case. I am getting the info I need to send from the controls on the screen. Here is my code:
private void sendConfirmationEmailSubmitter()
{
//Retreive Email for Submitter
UserController uc = new UserController();
UserInfo ui = new UserInfo();
ui = uc.GetUser(this.PortalId,this.UserId);
//string EMailSubmitter = ui.Email;
// OnlineCaseReviewerController controller = new OnlineCaseReviewerController();
// ArrayList editors = controller.GetEditors();
StringBuilder sb = new StringBuilder();
sb.AppendFormat( "{0};", ui.Email );
sb.Append(Title.Text,CategoyId.SelectedItem.Text,EditAuthor.Text,StatusId.SelectedItem.Text);
controller = null;
editors = null;
string url = string.Format( " Request.ServerVariables[ "SERVER_NAME" ], this.TabId, _caseId );
DotNetNuke.Globals.SendNotification( "nobody@aans.org", sb.ToString(), String.Empty, "Online Case submitted",
string.Format( "The following case has been submitted:\r\n\r\n{0}\r\n\r\n To review, please go to {1}", _case.Title, url),
null, null, null );
sb = null;
}
I am sending an email to the submitter of a case. I am getting the info I need to send from the controls on the screen. Here is my code:
private void sendConfirmationEmailSubmitter()
{
//Retreive Email for Submitter
UserController uc = new UserController();
UserInfo ui = new UserInfo();
ui = uc.GetUser(this.PortalId,this.UserId);
//string EMailSubmitter = ui.Email;
// OnlineCaseReviewerController controller = new OnlineCaseReviewerController();
// ArrayList editors = controller.GetEditors();
StringBuilder sb = new StringBuilder();
sb.AppendFormat( "{0};", ui.Email );
sb.Append(Title.Text,CategoyId.SelectedItem.Text,EditAuthor.Text,StatusId.SelectedItem.Text);
controller = null;
editors = null;
string url = string.Format( " Request.ServerVariables[ "SERVER_NAME" ], this.TabId, _caseId );
DotNetNuke.Globals.SendNotification( "nobody@aans.org", sb.ToString(), String.Empty, "Online Case submitted",
string.Format( "The following case has been submitted:\r\n\r\n{0}\r\n\r\n To review, please go to {1}", _case.Title, url),
null, null, null );
sb = null;
}