Rev 1429 | Rev 1490 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1429 | Rev 1450 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | else |
61 | else |
62 | URL_PREFIX = URL_PREFIX + "&certificate="; |
62 | URL_PREFIX = URL_PREFIX + "&certificate="; |
63 | 63 | ||
64 | cloned.setRecipients(new ArrayList<String>()); |
64 | cloned.setRecipients(new ArrayList<String>()); |
65 | 65 | ||
- | 66 | SendEmailService sendEmailService = new SendEmailService(); |
|
- | 67 | ||
66 | for(long userId: cloned.getUserIds()) |
68 | for(long userId: cloned.getUserIds()) |
67 | { |
69 | { |
68 | 70 | ||
69 | try{ |
71 | try{ |
70 | AbstractDao.getCurrentSession().beginTransaction(); |
72 | AbstractDao.getCurrentSession().beginTransaction(); |
Line 98... | Line 100... | ||
98 | cloned.getRecipients().clear(); |
100 | cloned.getRecipients().clear(); |
99 | cloned.getRecipients().add(toEmail); |
101 | cloned.getRecipients().add(toEmail); |
100 | 102 | ||
101 | 1.5.0/docs/api/java/lang/String.html">String finalUrl = URL_PREFIX + certificate; |
103 | 1.5.0/docs/api/java/lang/String.html">String finalUrl = URL_PREFIX + certificate; |
102 | 104 | ||
103 | new SendEmailService().sendEmail(cloned,finalUrl,nome); |
105 | sendEmailService.sendEmail(cloned, finalUrl, nome); |
104 | 106 | ||
105 | try { |
107 | try { |
106 | logger.info("Watting to send another email: sent to" + toEmail); |
108 | logger.info("Watting to send another email: sent to" + toEmail); |
107 | //Thread.sleep(pauseTime); |
109 | //Thread.sleep(pauseTime); |
108 | 1.5.0/docs/api/java/lang/Thread.html">Thread.sleep(pauseTime); |
110 | 1.5.0/docs/api/java/lang/Thread.html">Thread.sleep(pauseTime); |