Subversion Repositories SmartDukaan

Rev

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

Rev 33466 Rev 33494
Line 213... Line 213...
213
    }
213
    }
214
 
214
 
215
    @Bean
215
    @Bean
216
    public JavaMailSender googleMailSender() {
216
    public JavaMailSender googleMailSender() {
217
        JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
217
        JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
-
 
218
 
-
 
219
        // Using gmail
-
 
220
        mailSender.setHost("smtp.sendgrid.net");
-
 
221
        mailSender.setPort(587);
-
 
222
        mailSender.setUsername("apikey");
-
 
223
        mailSender.setPassword("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");
-
 
224
 
-
 
225
        Properties javaMailProperties = new Properties();
-
 
226
        javaMailProperties.put("mail.smtp.starttls.enable", "false");
-
 
227
        javaMailProperties.put("mail.smtp.auth", "true");
-
 
228
        javaMailProperties.put("mail.transport.protocol", "smtp");
-
 
229
        javaMailProperties.put("mail.debug", "true");// Prints out everything on
-
 
230
        // screen
-
 
231
 
-
 
232
        mailSender.setJavaMailProperties(javaMailProperties);
-
 
233
        return mailSender;
-
 
234
        /*JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
218
        // Using gmail
235
        // Using gmail
219
        mailSender.setHost("smtp.gmail.com");
236
        mailSender.setHost("smtp.gmail.com");
220
        mailSender.setPort(587);
237
        mailSender.setPort(587);
221
        mailSender.setUsername("build@shop2020.in");
238
        mailSender.setUsername("build@shop2020.in");
222
        mailSender.setPassword("cafe@nes");
239
        mailSender.setPassword("cafe@nes");
Line 225... Line 242...
225
        javaMailProperties.put("mail.smtp.starttls.enable", "true");
242
        javaMailProperties.put("mail.smtp.starttls.enable", "true");
226
        javaMailProperties.put("mail.smtp.auth", "true");
243
        javaMailProperties.put("mail.smtp.auth", "true");
227
        javaMailProperties.put("mail.transport.protocol", "smtp");
244
        javaMailProperties.put("mail.transport.protocol", "smtp");
228
        javaMailProperties.put("mail.debug", "true");// Prints out everything on screen
245
        javaMailProperties.put("mail.debug", "true");// Prints out everything on screen
229
        mailSender.setJavaMailProperties(javaMailProperties);
246
        mailSender.setJavaMailProperties(javaMailProperties);
230
        return mailSender;
247
        return mailSender;*/
231
    }
248
    }
232
 
249
 
233
    @Bean(name = "gson")
250
    @Bean(name = "gson")
234
    public Gson gson() {
251
    public Gson gson() {
235
 
252