import net.pterodactylus.rhynodge.Action;
import net.pterodactylus.rhynodge.output.Output;
+import com.google.common.annotations.VisibleForTesting;
import com.sun.mail.smtp.SMTPTransport;
/**
transport = new SMTPTransport(session, new URLName("smtp", hostname, 25, null, "", ""));
}
+ @VisibleForTesting
+ EmailAction(Transport transport, String sender, String recipient) {
+ this.transport = transport;
+ this.sender = sender;
+ this.recipient = recipient;
+ this.session = getInstance(getProperties());
+ }
+
//
// ACTION METHODS
//