Send E-mailv5
The Send E-mail action allows emails to be sent from XPODA forms to one or more recipients. It can be used for various scenarios such as notifications, approval requests, and file sharing.
Send E-mail Action Properties :

1. Description
Enter a description of the action.
The Description field serves as a reference for the developer who created the action or for other developers working on the project.
2. Heading
Specifies the name displayed in the Actions list when the action is added as a form action.
When the Send E-mail action is triggered from another action, this value is displayed in the action selection list.
3. File Format
Specifies the format of the attachment generated from the form (for example, PDF, XLS, etc.).
4. Design File
If a generated form output should be attached to the email, specify the file name or an SQL query that returns the file name.
5. To Whom
Specifies the recipient email address or addresses.
Email addresses can be entered directly or retrieved dynamically using an SQL query.
Example:
SELECT Email
FROM Staff WITH (NOLOCK)
WHERE Role = 'Manager'
Example:
SELECT 'emily.waterson@examplemail.com'
6. Information (CC)
Specifies additional recipients who should receive a copy of the email.
Email addresses can be entered directly or retrieved using an SQL query.
7. Subject
Specifies the email subject.
The subject can be entered as plain text or returned dynamically from an SQL query.
8. Sender Mail
(1-Mail, 2-Host, 3-Password, 4-Display Name, 5-User Name, 6-SSL, 7-Port)
Specifies the SMTP settings of the sender email account.
This field is optional. If left empty, the default email settings configured in the system parameters are used. If the email should be sent from a different account for this action only, all SMTP parameters must be provided. Click here to access the related document. |
For example, if you want to send emails using a Gmail account for this action, enter the Gmail SMTP settings. The Host, SSL, and Port values depend on the email provider you are using.

Sender Mail Parameters:
- Mail Address – Sender email address.
- Host – SMTP server address.
- Password – Password of the sender email account.
- Display Name – Name displayed to recipients.
- User Name – Usually the same as the email address. Some SMTP servers require a separate username.
- SSL – Specify TRUE or FALSE.
- Port – SMTP server port number.
Sender email information can be entered directly or provided through an SQL query. When using an SQL query, the returned columns must be in the same order as the sender email settings. |
9. BCC
Specifies blind carbon copy recipients.
Recipients in the BCC field are hidden from all other recipients.
Email addresses can be entered directly or retrieved with an SQL query.
10. Files to Be Added
Allows files attached to the form to be sent as email attachments.
The files are retrieved by an SQL query.
The form must contain an Add File component to use this property. |
Bu alana aşağıdaki sorgu yazılabilir.
SELECT FileName, FileContent, RecordGuid FROM XPODA_FILES WHERE FormID = $PFormID$
11. Content
Specifies the email body.
Form values can be inserted dynamically using the $P syntax.
Example:
$PFirstName
retrieves the value of the FirstName field from the form.
12. HTML File
If a custom HTML template should be used as the email body, specify its file name.
The HTML file must be located in the same directory as xpoda.HTML inside the XPODA Client installation folder.
| To customize the email design, modify the xpoda.HTML file included with the installation or create your own HTML template. |
Email Links and Approval Process
The Send E-mail action can include a link that opens a form directly from the email.
13. Confirmation Form
Specifies the form opened when the recipient clicks the approval link.
14. Confirmation ID Field
Specifies the field used to match the record opened through the email link.
This should normally be a unique field such as UserTableID or the primary key of the form.
15. Confirmation User / Confirm Password
Specifies the username and password used to access the form.
16. Link Text
Specifies the text displayed as the hyperlink inside the email.
Example: Click here to view the form
17. Send to Approval
If this property is set to YES, an approval link is added to the email.
The recipient can click the link and perform the approval process directly from the specified form.
If this option is disabled, form links are not included in the email.
| Send to Approval must be set to YES for form links to be generated. |
18. Info Mail CC
If set to NO, recipients specified in Information (CC) do not receive the email.
Only recipients in To Whom receive it.
If set to YES, CC recipients also receive the email.
19. Not Information Message
If set to NO, no notification message is displayed to the user after the email is sent.
This is useful for background or automated processes.
If set to YES, a confirmation message such as "Information sent successfully." is displayed.
20. Run Condition
Defines the condition required for the action to execute.
If the SQL query returns 1, the action runs.
If it returns 0, the action is skipped.
21. Request Confirmation
When enabled, the user is asked to confirm the operation before the email is sent.
The action proceeds only if the user approves.
Example 1
Click the Send E-mail button added to the form.
Configure the action as follows.
Enter the recipient email address in the To Whom field.
Enter the email subject in the Subject field.


Enter the email content in the Content field.
To include an image in the email body, click the E-mail Content button to open the email editor.
Click the Insert Image button.
During this action, all form data is sent to the service. If the form contains large image files, the request may take longer to complete, resulting in slower email delivery. |

In the Image URL field, specify the form image using the $P syntax.
Then specify the desired Width and Height, and click Insert.

Save the action, save the form, and run the application.
Open any existing record and click the Send E-mail button.

A notification confirms that the email has been sent successfully.

Example 2 – Sending an Email with a Form Link
Select the target form in the Confirmation Form property.
Configure the Confirmation ID Field.
Enter the username and password used to access the form.
Specify the hyperlink text in Link Text.
Set Send to Approval to YES.
If no Linked List is selected, the UserTableID value is automatically included in the generated link. The email can be sent either immediately after saving the record or after loading an existing record. |
f a Linked List is selected, the list query must include the following fields:
- UserTableID
- ProjectID
- FormTypeID
Otherwise, the email cannot be generated.

After completing the configuration, save the action, save the form, run the application, load the desired record, and click the Send E-mail button.

The recipient receives an email containing a link that opens the specified form directly.
