Subversion Repositories SmartDukaan

Rev

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

Rev 3126 Rev 8181
Line 82... Line 82...
82
			
82
			
83
			HelperClient helperServiceClient = null;
83
			HelperClient helperServiceClient = null;
84
			try {
84
			try {
85
				helperServiceClient = new HelperClient();
85
				helperServiceClient = new HelperClient();
86
				in.shop2020.utils.HelperService.Client client = helperServiceClient.getClient();
86
				in.shop2020.utils.HelperService.Client client = helperServiceClient.getClient();
87
				Mail mail = new Mail();
-
 
88
				mail.setSubject("Password reset request");
-
 
89
				mail.setTo(toList);
-
 
90
				mail.setData("Your new password is: " + newPassword);
87
				client.saveUserEmailForSending(toList, "help@saholic.com", "Password reset request", "Your new password is: " + newPassword, "", "ForgotPassword", new ArrayList<String>(), new ArrayList<String>(), 1);
91
				client.sendMail(mail);
-
 
92
			} catch (Exception e) {
88
			} catch (Exception e) {
93
				log.error("Unexpected error while mailing the new password");
89
				log.error("Unexpected error while mailing the new password");
94
				return false;
90
				return false;
95
			}
91
			}
96
			return true;
92
			return true;