Sending Email

Introduction

This guide will teach you how to send emails within your Joget process by configuring the Email Tool. This tool allows you to send customized emails directly from your workflow, with options to include dynamic content and file attachments. By the end of this tutorial, you can set up the email tool, configure your email server settings, and customize your email content to suit your workflow needs.

How does it work?

The process involves adding a Tool element to your workflow and mapping it to the Email Tool. Here’s a step-by-step overview of how to set it up:

  1. Start by including a Tool element in your process design and mapping it to the Email Tool. This element is where the email will be sent during the process.
  2. Open the Plugin Configuration dialog box to configure your email server settings. You must input details like the SMTP server address, port, and authentication credentials.
  3. In the Email tab, customize the content of the email. You can use hash variables to include dynamic content, such as the requester’s details or specific form data.
  4. You can also include file attachments in the email by looking up the files uploaded in a form or providing a system path or URL for external files.


    Note: 
    If you want to set up a task notification for new tasks, please see the User Notifications Tutorial.

Verifying SMTP server connectivity

Before sending emails, it’s important to verify that your SMTP server settings are correct and that you can connect to the server. You can do this by checking with your server administrator to ensure the correct permissions and ports are open for the SMTP server.

A quick way to check server connectivity is to use the following command in your terminal:

telnet mail.sampleDomain.com 25
Connecting To mail.sampleDomain.com...

If the connection is successful, you will see a message similar to this:

+OK Microsoft Exchange Server 2001 POP3 server version 1.2.3.4 (sampleDomain.local) ready.

Related documentation

Created by Julieth Last modified by Aadrian on Dec 13, 2024