Send an Email
The Send Email action sends an email from an automation. You write the subject and message once, and insert values from the record (merge fields), links to the citizen portal, and attachments such as a generated permit PDF.
Prerequisites
- An automation with a trigger. The record or form the trigger provides is where the email's values come from.
- The record has a field holding the recipient's email address (for example, Applicant Email), or a user field for a staff member.
- To attach a generated document, a Generate PDF step earlier in the automation.
Steps
Add a Send Email step
Click + where the email should go, choose Send Email, and enter a Name such as "Approval notice".
Add recipients
In To, type email addresses, or click + and choose a field from an earlier step: an email field on the record, or a user field's (Email) option. Separate typed addresses with commas, semicolons, or new lines. Add CC and BCC recipients the same way. BCC recipients are hidden from the others.
Write the subject
Type the Subject. Click + to insert a value, for example the permit number.
Write the message
Type the Message using the formatting toolbar. Click + to insert values from earlier steps where they should appear. Each inserted value shows as a chip in the text.
Insert links (optional)
In the + menu for Message, choose Insert a link and pick a link type (see the table below).
Add attachments (optional)
In Attachments, choose Static file upload to attach the same file every time, or Dynamic file upload to attach a file from an earlier step, such as the PDF from a Generate PDF step or a file field on the record.
Save
Click Save Changes.
Settings
| Setting | Required | Description |
|---|---|---|
| Name | Yes | Label for this step |
| To | Yes | Recipient addresses or address fields |
| CC | No | Visible copy recipients |
| BCC | No | Hidden copy recipients |
| Subject | Yes | Email subject line; can include merge fields |
| Message | Yes | Email body with formatting, merge fields, and links |
| Attachments | No | Static or dynamic files |
Link types
| Link | Goes to | Available |
|---|---|---|
| Citizen Portal Home | Your citizen portal home page | Always |
| Public form | A form you pick from the list | Always |
| Resume Permit Application | The applicant's in-progress application | Always |
| Pay for inspection | The payment page for the appointment | Only with the On Appointment Change trigger |
| View inspection | The appointment details | Only with the On Appointment Change trigger |
Using merge fields
When you click +, the left column, Use data from..., lists the steps that run before this email. Pick a step, then pick a field under Choose Data. User fields offer separate (Name) and (Email) options.
Merge fields must come from a step that runs before the email. If a merge field points to a later step, a deleted step, or a field that no longer exists, publishing or activating the automation is refused with an error, so a citizen never receives an email with a blank value.
Test environments and email
An automation sends real email. Your administrator can configure a test environment to redirect automation email to a test mailbox. Confirm how your test environment handles email before you trigger automations with real addresses.
Example
Tell a Building Permit applicant their permit is approved and attach the permit.
| Setting | Value |
|---|---|
| Name | Permit approved email |
| To | + then the trigger step's Applicant Email |
| CC | permits@youragency.gov |
| Subject | Your building permit + Permit Number has been approved |
| Message | Dear + Applicant Name, your permit for + Project Address is approved. Citizen Portal Home link. |
| Attachments | Dynamic file upload, the Generated PDF from the earlier Generate PDF step |
Common mistakes
- Typing a staff member's personal address in To. Use a user field's (Email) option or a shared team mailbox so the email follows the role, not the person.
- Inserting a merge field from a step that runs after the email. Move the email below that step.
- Using the appointment links (Pay for inspection, View inspection) in an automation that is not triggered by On Appointment Change. They are greyed out under other triggers.
- Sending an email from a When records matches condition trigger without a run-once guard, which resends the email on every later save.