com.formkiq.server.config.DefaultConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of formkiq-server Show documentation
Show all versions of formkiq-server Show documentation
Server-side integration for the FormKiQ ios application
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
*/
}
}