br.com.jhonsapp.email.configuration.mailer.Mailer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of email-dispatcher Show documentation
Show all versions of email-dispatcher Show documentation
Email Dispatcher is an open source project created by Jhonys Camacho and Jhonathan Camacho to facilitate the sending of emails.
package br.com.jhonsapp.email.configuration.mailer;
import java.io.Serializable;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import com.outjected.email.api.MailMessage;
import com.outjected.email.api.SessionConfig;
import com.outjected.email.impl.MailMessageImpl;
@RequestScoped
public class Mailer implements Serializable{
private static final long serialVersionUID = -5737903279605415078L;
@Inject
private SessionConfig config;
public MailMessage newMessage() {
return new MailMessageImpl(this.config);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy