Skip to content

Instantly share code, notes, and snippets.

@zach-m
zach-m / EmailSender.java
Last active February 7, 2020 14:26
Utility class to use JavaMail without the hassle of Multipart assembling
package com.tectonica.util;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.mail.Authenticator;
import javax.mail.BodyPart;