Subversion Repositories SmartDukaan

Rev

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

Rev 36220 Rev 36248
Line 205... Line 205...
205
        props.put("mail.smtp.writetimeout", "10000");
205
        props.put("mail.smtp.writetimeout", "10000");
206
 
206
 
207
        return mailSender;
207
        return mailSender;
208
    }
208
    }
209
 
209
 
-
 
210
    @Bean(name = "gmailRelaySender")
-
 
211
    public JavaMailSender getGmailRelaySender() {
-
 
212
        JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
-
 
213
        mailSender.setHost("smtp-relay.gmail.com");
-
 
214
        mailSender.setPort(587);
-
 
215
 
-
 
216
        Properties props = mailSender.getJavaMailProperties();
-
 
217
        props.put("mail.smtp.starttls.enable", "true");
-
 
218
        props.put("mail.smtp.auth", "false");
-
 
219
        props.put("mail.smtp.localhost", "smartdukaan.com");
-
 
220
        props.put("mail.smtp.ssl.protocols", "TLSv1.2");
-
 
221
        props.put("mail.smtp.ssl.trust", "smtp-relay.gmail.com");
-
 
222
        props.put("mail.transport.protocol", "smtp");
-
 
223
        props.put("mail.smtp.connectiontimeout", "10000");
-
 
224
        props.put("mail.smtp.timeout", "10000");
-
 
225
        props.put("mail.smtp.writetimeout", "10000");
-
 
226
 
-
 
227
        return mailSender;
-
 
228
    }
-
 
229
 
210
    @Autowired
230
    @Autowired
211
    private RunOnceTasks runOnceTasks;
231
    private RunOnceTasks runOnceTasks;
212
 
232
 
213
    @Autowired
233
    @Autowired
214
    private ScheduledTasks scheduledTasks;
234
    private ScheduledTasks scheduledTasks;