Class EmailConfiguration


  • @Configuration
    public class EmailConfiguration
    extends java.lang.Object
    Configures email settings for EmailComponent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.mail.javamail.JavaMailSender getJavaMailSender()
      Creates an email configuration by connecting to an Gmail account Password and username are read from config.properties file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmailConfiguration

        public EmailConfiguration()
    • Method Detail

      • getJavaMailSender

        @Bean
        public org.springframework.mail.javamail.JavaMailSender getJavaMailSender()
        Creates an email configuration by connecting to an Gmail account Password and username are read from config.properties file
        Returns:
        JavaMailSender