BACKENDΒ·μ€‘μš”λ„ 6Β·2026. 05. 29.Β·Dev.to

πŸ“Ž Send Joget Emails with File Attachments Using BeanShell

── KO ──────────────────

Jogetμ—μ„œ 파일 첨뢀가 ν¬ν•¨λœ 이메일을 λ³΄λ‚΄λŠ” 방법을 μ„€λͺ…ν•©λ‹ˆλ‹€.

Joget은 λ‚΄μž₯ 이메일 도ꡬλ₯Ό 톡해 μ•Œλ¦Ό 이메일을 보낼 수 μžˆμ§€λ§Œ, μ™ΈλΆ€ 이메일 APIλ₯Ό ν˜ΈμΆœν•˜κ³  Joget λ‚΄λΆ€μ—μ„œ μ—…λ‘œλ“œλ˜κ±°λ‚˜ μƒμ„±λœ νŒŒμΌμ„ 포함해야 ν•˜λŠ” ν”„λ‘œμ νŠΈλ„ μžˆμŠ΅λ‹ˆλ‹€. 이 λ¬Έμ„œμ—μ„œλŠ” νŒŒμΌμ„ 읽고 Base64둜 λ³€ν™˜ν•˜μ—¬ JSON νŽ˜μ΄λ‘œλ“œλ₯Ό μƒμ„±ν•˜κ³  μ™ΈλΆ€ API둜 λ³΄λ‚΄λŠ” 방법을 λ‹€λ£Ήλ‹ˆλ‹€. BeanShell Tool을 μ‚¬μš©ν•˜μ—¬ μ›Œν¬ν”Œλ‘œμš° λΉŒλ”μ—μ„œ μ΄μ½”λ“œλ₯Ό ν™œμš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.


── EN ──────────────────

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.

원문 보기 β†’λͺ©λ‘μœΌλ‘œ