Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
10 views
ago in General by (120 points)

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();
        }
    }
}

1 Answer

0 votes
ago by (165k points)
We don't have a JavaMail library. Perhaps you are thinking of someone else.

Categories

...