Click the button to send an email

  • Last update:  2021-10-31
  • I. Overview

    In most enterprises, email communication is a very common and important communication tool. Often, when an employee completes an event, he/she needs to notify all relevant personnel by email. Then how should FineReport realize this, for example, when filling in a data into the database, he/she needs to notify relevant personnel by email?

    II. Example - (Custom button)

    Here is a simple example of how FineReport can send mail.

    Select recipients from the drop-down check box on the parameter interface. Click the button to send the email addresses of all recipients as the email body and the date of the day as the email title.

    1) Preparing templates

    Create a new blank template ,Add a parameter person in the Template >Template Parameters, and add the parameter widget to the parameter panel. Select the drop-down check box for widget type, and set the data dictionary as shown below:

    1.jpg

    2) Sender settings

    The recipient email address has been set. The sender email address is set.

    Type http://localhost:8075/webroot/decision in your browser, login with administrator account, click on the Manage>System>Emailbox, you can configure the sender email, as shown below:

    2.jpg

    Note: How to obtain the authorization code? Check how to enable POP3/SMTP service and generate the authorization code

    Note: FR supports only one sender and cannot change dynamically.

    For details about how to configure sender email, see Email service.

    Click the Save button and the sender's mailbox is configured.

    3) Sending an email

    Return to the template, switch to the parameter interface, select the query button, select the event TAB in the property panel on the right, add a click event, and select send email as the response mode of the event, as shown below:

    3.jpg

    Note: Formulas are supported for both body and title.

    4) Effect viewing

    Select SUSIE and Caixiaolan from the drop-down box and click the query button to trigger the click event to send the email to josie and min.chen, as shown below. FineReport will send the above email to josie and min.chen

    4.jpg5.jpg

    III. Example 2 (Built-in button on the Web)

    When viewing reports on the Web side, FineReport also has a mail button in the built-in toolbar. Click the button to directly send emails. For example, if we preview GettingStarted template, we can see the mail button on the Web side toolbar.

    6.jpg

    7.jpg

    Note: Sent messages are displayed in HTML and can be copied.

    Attachment List


    Theme: Parameter
    Already the First
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy