It is the type of action that allows the form to be sent as e-mail.
Send E-Mail action in Feature Panel
Features
Description: A description of the action is written.
Title: Specifies the name in the action list when added as a Form Action.
File Format: Select the format of the attached file to be sent via Mail.
Design File: The name of the attached file to be sent by e-mail is written or found by SQL query.
To: Write or find the information to whom the mail will be sent by SQL query. (e-mail)
Information: Mail information is written to the information where it was sent or found by SQL query. (e-mail)
Subject: Mail subject is written or found by SQL query.
Sender Mail - 1(*Mail) 2(*Host) 3(*Password) 4(Display Name) 5(Username) 6(SSL) 7(Port): The information of the mail address to send the mail is written.
|
This field allows you to send mail with another action-specific mail information. If left blank, the mail information in your system parameters will be used. Click here to access the related document. |
For example; we want to send mail with action specific gmail information. When we save the gmail smtp information as in the example screenshot below, only mail can be sent with this action-specific gmail. (* Host, SSL, Port information may change according to the mail provider you use)
BCC: Allows the sender to hide the contact entered in the bcc field from other recipients.
Files to Attach (File Name, File Content): Mail is a section that allows you to send files attached to the form with file attachment control. The files are found by the query (from XPODA_FILES)
Content: Mail content is written.
HTML File: If there is an HTML file designed for the mail body, type the name of the file. The file location should be under Downloads\Email folder in the working directory of the program.
Approval Form: If approval is requested by e-mail, select the form to be opened by clicking on the approval link.
Approval ID Field: Select the field where the credentials from the e-mail will be written with the confirmation link.
Linked List: A list selection is made in the form. The information in the selected row of the related list is used for sending mail.
Approval User: After clicking the confirmation link, the user code to be used for logging into the system is written. If it is empty, the user login screen is displayed.
Confirm Password: After clicking the confirmation link, enter the password of the user to be used for logging in.
Send for Approval: Specifies whether to include a confirmation link in the mail content.
Link Text: The text of the confirmation link to be added to the mail content is written.
Info Mail CC: Information mails are sent or not sent.
Not Info Message: Hides the completed information.
Run Condition: If the value in the query entered in this field is '0', the related operation will not run.
Request Approval: Select whether you want to ask for confirmation before running the action. If Request Approval is active, the Approval Message feature is opened and the message to be displayed when requesting approval is written.
For Example
There is a button on the form. A Send E-Mail action is defined on the button with the When Clicked event. A design file is sent to the Design File field with the name of the design. The To field is written from XPODA_CLIENT_USERS (you can also write it as SELECT 'xxxx@xxxxx.xxx'). The Subject field is typed as text. Content property field is typed.
When the Send Mail button is clicked, if the data is correct, the message is displayed.
Client screen view
The $P Expression written at this point must be realized from the image field in the mail body. Otherwise, the image will not appear in the mail, only a text in the form of $Picture will appear.
Sample usage and details are as follows.
Select Send Mail action and click on E-Mail content button.
In the Mail Editor that opens, click on the Add Picture button as shown in the picture below.
From the pop-up screen, in the Internet address field, type $P and the name of the image field in the form.
Then, the image sizing that will go in the mail is entered from the width - height field and click the add button.
Mail Link Usage
The use of Mail Link is used to direct the users we send mail to the desired forms via a link. In order to use the Mail Link feature, let's open the Send E-mail action and edit it as in the following description.
- Confirmation form should be selected as the name of the form we want to go with the link.
- Confirmation ID Field field should be the ID that updates the entire form in the form to be linked.
- If linked list is not selected; UserTableID information is transmitted in the part written in the Confirmation ID Field field. After it is saved, mail sending can be done or mail sending can be done by calling a record to the form.
- If linked list is selected; UserTableID, ProjectID, FormTypeID fields must be added in the list in the form, otherwise mail sending process will not be realized.
Let's create the form we want to go to in the link sent by mail. The form with the fields below is our form named Mail_Link added in the Confirmation form field. In this form, let's add a few fields with ID, Current and Stock fields and save the form.
Then come back to our Send E-Mail action and fill in the following fields accordingly.
- Confirmation Form: Let's select the form we want to go to when the link is clicked, that is, the Mail_Link form in our example.
- Confirmation ID: Let's select our ID field in the form.
- Confirmation User: Let's write the user code entered by Xpoda Client.
- Confirm Password: Let's write the password of the user entered on the Xpoda Client side.
|
- Send to Approval section must be activated.
- The text written in the Link Text field is the text shown in the mail.
Finally, the image of our action will be as follows:
After saving the action with the Save button, let's save the form and run our project with the Run button. Then let's trigger our Send E-mail action. After performing this action, an e-mail will be sent as below and the link in this e-mail will take us to the form named Mail_Link.
Note : When using this action, all data in the form will be redirected to the service. If a large image is added to the Image field in the form, it may take a long time to redirect to the service. Accordingly, delays will occur in the use of send mail action.
Note : You can change xpoda.HTML in your installation files to change the HTML design and use custom HTML for mail.
Note : When you want to add custom HTML to the action, you should type the file name you want to send in the HTML File field. This file must be in the same folder as xpoda.HTML in your Xpoda Client files.