import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import java.util.Properties;
@Configuration
public class MailConfig {
<BUG>@Bean(name = "mailSender")
</BUG>
public JavaMailSenderImpl javaMailSender() {
return new JavaMailSenderImpl();
}

import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import java.util.Properties;
@Configuration
public class MailConfig {
@Bean(name = "javaMailSender")
public JavaMailSenderImpl javaMailSender() {
return new JavaMailSenderImpl();
}
