play.libs.mail.ProductionMailSystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
RePlay is a fork of the Play1 framework, created by Codeborne.
package play.libs.mail;
import org.apache.commons.mail.Email;
import play.libs.Mail;
class ProductionMailSystem implements MailSystem {
@Override
public boolean sendMessage(Email email) {
email.setMailSession(Mail.getSession());
return Mail.sendMessage(email);
}
}