Joget에서 파일 첨부가 포함된 이메일을 보내는 방법을 설명합니다.
Joget은 내장 이메일 도구를 통해 알림 이메일을 보낼 수 있지만, 외부 이메일 API를 호출하고 Joget 내부에서 업로드되거나 생성된 파일을 포함해야 하는 프로젝트도 있습니다. 이 문서에서는 파일을 읽고 Base64로 변환하여 JSON 페이로드를 생성하고 외부 API로 보내는 방법을 다룹니다. BeanShell Tool을 사용하여 워크플로우 빌더에서 이코드를 활용할 수 있습니다.
Describes how to send emails with file attachments in Joget.
Joget can send notification emails using its built-in email tool, but some projects require calling an external email API and including files uploaded or generated in Joget. This document outlines how to read a file, convert it to Base64, build a JSON payload, and send it to the external API. It demonstrates using the BeanShell Tool in the Workflow Builder for this purpose.