All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.formkiq.server.config.DefaultConfig Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.formkiq.server.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;
import org.springframework.mail.MailSender;

/**
 * Prod Configuration.
 *
 */
@Configuration
@Profile("default")
@PropertySource("classpath:default.properties")
public class DefaultConfig {

    /**
     * @return MailSender
     */
    @Bean
	public MailSender mailSender() {
//		JavaMailSenderImpl sender = new JavaMailSenderImpl();
//		sender.setHost("mail.host.com");
		return new LoggerMailSender();
		/*
    smtp.gmail.com
        587
        smtp
        ${mail.username}
        ${mail.password}
        
            
                true
                true
                false
            
        
		 */
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy