I’m building a simple Kolkata FF mail sender using EnterpriseDT’s JavaMail library and hit a weird issue
import com.enterprisedt.net.smtp.SMTPClient;
import java.io.IOException;
public class SendMail {
public static void main(String[] args) {
try {
SMTPClient smtp = new SMTPClient();
smtp.connect("smtp.example.com");
smtp.auth("user", "pass");
smtp.sendMessage("from@example.com", "to@example.com", "Test FF mail");
smtp.quit();
} catch (IOException e) {
e.printStackTrace();
}
}
}