public String getFromMail(String userId) { UsersEnt userEnt=new UsersEnt(); User user= new User(); user.Emp_ID=userId; User fromMail = userEnt.getUser(user); return fromMail.Email.ToString(); }
public void sendEmailToDeptHead(User user) { UsersEnt ent = new UsersEnt(); User usr = ent.getUser(user); string Body = usr.Emp_Name + "has Submitted a requisition form for your Approval"; string subject = "Requisition Form for Approval"; NotificationMsg msg = new NotificationMsg(); msg.sendSingleNotification(user, subject, Body); }