Package com.anhtester.mail
Class EmailAttachmentsSender
java.lang.Object
com.anhtester.mail.EmailAttachmentsSender
https://www.codejava.net/java-ee/javamail/send-e-mail-with-attachment-in-java
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EmailAttachmentsSender
public EmailAttachmentsSender()
-
-
Method Details
-
sendEmailWithAttachments
public static void sendEmailWithAttachments(String host, String port, String userName, String password, String[] toAddress, String subject, String message, String... attachFiles) throws javax.mail.internet.AddressException, javax.mail.MessagingException - Throws:
javax.mail.internet.AddressExceptionjavax.mail.MessagingException
-