[ Java ]
메일 replyto
2021-01-11 14:35:07
메일 보내는 주소와 회신 주소를 다르게 설정해야 될 경우가 있다. replyTo를 이용하여 가능하다. 예를 들어, 보내는 주소 도메인이 google 이지만 받는 도메인은 naver가 가능하다. private void send(JavaMailSender mailSender, Address from, Address[] tos, String subject, String text, String encoding, FileAttachment... attachments) throws MessagingException, UnsupportedEncodingException{ int attachmentLength = ArrayUtils.getLength(attachments); boolean multipart = atta..