private void EmailSubmission() { // Enhancement Request: Find the appropriate ASO to send the email to. //IUserInRole userID_councilArea = APF.Searcher.Find_User_In_Role_By_Role_ID(councilArea_Role_ID); //MembershipUser councilArea = Membership.GetUser(userID_councilArea.aspnet_User.UserName); //string emailOne = councilArea.Email; IUserInRole userID_mainOffice = APF.Searcher.Find_User_In_Role_By_Role_ID(mainOffice_Role_ID); MembershipUser mainOffice = Membership.GetUser(userID_mainOffice.aspnet_User.UserName); string emailTwo = mainOffice.Email; eih = new Email_Incident_Handler(); eih.EmailAttachment(emailTwo, _incidentReport, _reportVersion); }
protected void EmailButton_Click(object sender, EventArgs e) { eih = new Email_Incident_Handler(); MembershipUser user = Membership.GetUser(HttpContext.Current.User.Identity.Name); eih.EmailAttachment(user.Email, Profile.IncidentReportID); // Clear the profile. Profile.IncidentReportID = ""; Profile.DropZoneID = ""; Response.Redirect("Admin_Home.aspx"); }