Class CommMailTool

java.lang.Object
io.github.enxign.shed.msg.CommMailTool

public class CommMailTool extends Object
Apache 공용 이메일(commons-email:1.6.0)
Since:
2021-02-01
Version:
1.0
 수정일        수정자       수정내용
 ----------   ---------   -------------------------------
 2021-02-01   first       create
 
Author:
enxign
  • 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.com
      port - 포트()
      user - 사용자 ID
      pw - 비밀번호
      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.com
      port - 포트
      user - 사용자 ID
      pw - 비밀번호
      isSSL - SSL 사용여부
      content - MailDTO
      Returns:
      전송 결과
      Throws:
      Exception - 예외 처리
    • sendImgHtmlEmail

      public static String sendImgHtmlEmail(String host, String imgHost, MailDTO content) throws Exception
      이미지 이메일 전송
      Parameters:
      host - mail.myserver.com
      imgHost - 이미지파일(http://www.apache.org/images/feather.gif)의 host -> http://www.apache.org
      content - MailDTO
      Returns:
      전송 결과
      Throws:
      Exception - 예외 처리