| Line 16... |
Line 16... |
| 16 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
16 |
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
| 17 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
17 |
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
| 18 |
import org.springframework.core.io.ClassPathResource;
|
18 |
import org.springframework.core.io.ClassPathResource;
|
| 19 |
import org.springframework.core.io.Resource;
|
19 |
import org.springframework.core.io.Resource;
|
| 20 |
import org.springframework.mail.javamail.JavaMailSender;
|
20 |
import org.springframework.mail.javamail.JavaMailSender;
|
| - |
|
21 |
import com.spice.profitmandi.common.services.AuthenticatedIdentityMailSender;
|
| 21 |
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
22 |
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
| 22 |
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
|
23 |
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
|
| 23 |
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
24 |
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
| 24 |
|
25 |
|
| 25 |
import com.google.gson.Gson;
|
26 |
import com.google.gson.Gson;
|
| Line 115... |
Line 116... |
| 115 |
return propertySourcesPlaceholderConfigurer;
|
116 |
return propertySourcesPlaceholderConfigurer;
|
| 116 |
}
|
117 |
}
|
| 117 |
|
118 |
|
| 118 |
@Bean
|
119 |
@Bean
|
| 119 |
public JavaMailSender googleMailSender() {
|
120 |
public JavaMailSender googleMailSender() {
|
| 120 |
JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
|
121 |
JavaMailSenderImpl mailSender = new AuthenticatedIdentityMailSender();
|
| 121 |
mailSender.setHost("smtp.gmail.com");
|
122 |
mailSender.setHost("smtp.gmail.com");
|
| 122 |
mailSender.setPort(465);
|
123 |
mailSender.setPort(465);
|
| 123 |
mailSender.setUsername("sdtech@smartdukaan.com");
|
124 |
mailSender.setUsername("sdtech@smartdukaan.com");
|
| 124 |
mailSender.setPassword("wbdwyqrcgosrkwdn"); // App Password
|
125 |
mailSender.setPassword("wbdwyqrcgosrkwdn"); // App Password
|
| 125 |
|
126 |
|