kz.greetgo.email.from_spring.javamail.SmartMimeMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.email.from_spring Show documentation
Show all versions of greetgo.email.from_spring Show documentation
Sending emails with native java
The newest version!
package kz.greetgo.email.from_spring.javamail;
import javax.activation.FileTypeMap;
import javax.mail.Session;
import javax.mail.internet.MimeMessage;
class SmartMimeMessage extends MimeMessage {
private final String defaultEncoding;
private final FileTypeMap defaultFileTypeMap;
public SmartMimeMessage(Session session, String defaultEncoding, FileTypeMap defaultFileTypeMap) {
super(session);
this.defaultEncoding = defaultEncoding;
this.defaultFileTypeMap = defaultFileTypeMap;
}
public String getDefaultEncoding() {
return defaultEncoding;
}
public FileTypeMap getDefaultFileTypeMap() {
return defaultFileTypeMap;
}
}