Subversion Repositories SmartDukaan

Rev

Rev 28819 | Rev 28839 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28819 Rev 28820
Line 1138... Line 1138...
1138
				LOGGER.info("Will Send Email to {}", authUser.getFullName());
1138
				LOGGER.info("Will Send Email to {}", authUser.getFullName());
1139
				String body = String.format(
1139
				String body = String.format(
1140
						"Dear %s,\n Pls note that you haven't punched your attendance by 10:30am%s. You have been marked absent for half the day.\n\nRegards\nHR Team",
1140
						"Dear %s,\n Pls note that you haven't punched your attendance by 10:30am%s. You have been marked absent for half the day.\n\nRegards\nHR Team",
1141
						authUser.getFullName(), (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null) ? "" 
1141
						authUser.getFullName(), (employeeAttendanceOptional == null || employeeAttendanceOptional.orElse(null) == null) ? "" 
1142
								: "(Punched at " + FormattingUtils.format(employeeAttendanceOptional.get().getCreateTimestamp()) +")" );
1142
								: "(Punched at " + FormattingUtils.format(employeeAttendanceOptional.get().getCreateTimestamp()) +")" );
1143
				/*
1143
				
1144
				 * Utils.sendMailWithAttachments(googleMailSender, new String[] {
1144
				  Utils.sendMailWithAttachments(googleMailSender, new String[] {
1145
				 * authUser.getEmailId() }, new String[] { "jyoti.rawat@smartdukaan.com" },
1145
				  authUser.getEmailId() }, new String[] { "jyoti.rawat@smartdukaan.com" },
1146
				 * "Attendance Alert", body);
1146
				  "Attendance Alert", body);
1147
				 */
1147
				 
1148
			}
1148
			}
1149
		}
1149
		}
1150
 
1150
 
1151
	}
1151
	}
1152
 
1152