Package io.github.enxign.shed.msg
Class CommMailTool
java.lang.Object
io.github.enxign.shed.msg.CommMailTool
Apache 공용 이메일(commons-email:1.6.0)
- Since:
- 2021-02-01
- Version:
- 1.0
수정일 수정자 수정내용 ---------- --------- ------------------------------- 2021-02-01 first create
- Author:
- enxign
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CommMailTool
public CommMailTool()
-
-
Method Details
-
sendEmail
public static String sendEmail(String host, int port, String user, String pw, boolean isSSL, MailDTO content) throws Exception 간단한 이메일 전송- Parameters:
host
- mail.myserver.comport
- 포트()user
- 사용자 IDpw
- 비밀번호isSSL
- SSL 사용여부content
- MailDTO- Returns:
- 전송 결과
- Throws:
Exception
- 예외 처리
-
sendAttachEmail
public static String sendAttachEmail(String host, int port, String user, String pw, boolean isSSL, MailDTO content) throws Exception 첨부파일 이메일 전송- Parameters:
host
- mail.myserver.comport
- 포트user
- 사용자 IDpw
- 비밀번호isSSL
- SSL 사용여부content
- MailDTO- Returns:
- 전송 결과
- Throws:
Exception
- 예외 처리
-
sendImgHtmlEmail
public static String sendImgHtmlEmail(String host, String imgHost, MailDTO content) throws Exception 이미지 이메일 전송- Parameters:
host
- mail.myserver.comimgHost
- 이미지파일(http://www.apache.org/images/feather.gif)의 host -> http://www.apache.orgcontent
- MailDTO- Returns:
- 전송 결과
- Throws:
Exception
- 예외 처리
-