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

br.com.jhonsapp.email.producer.MailMessageProducer Maven / Gradle / Ivy

Go to download

Email Dispatcher is an open source project created by Jhonys Camacho and Jhonathan Camacho to facilitate the sending of emails.

There is a newer version: 1.0.3
Show newest version
package br.com.jhonsapp.email.producer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import com.outjected.email.api.MailMessage;
import com.outjected.email.api.SessionConfig;
import com.outjected.email.impl.MailMessageImpl;

/**
 * Class responsible for producing MailMessage.
 * 
 * @see MailMessage
 * 
 * @author Jhonathan Camacho
 *
 */
@Component
public class MailMessageProducer {

	@Autowired
	private SessionConfig sessionConfig;

	@Bean
	public MailMessage mailMessage() {
		return new MailMessageImpl(this.sessionConfig);
	}
		
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy