Mail processing method and device, equipment and storage medium
The email processing method automatically selects and personalizes email templates based on recipient attributes, enhancing user experience by eliminating manual template selection and enabling efficient, tailored email delivery.
Patent Information
- Application Number
- CN202411261923.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-10
AI Technical Summary
Existing email templates are not adaptable to different types of recipients, requiring manual selection by senders, leading to a poor user experience.
An email processing method that determines a target recipient based on attribute information, selects an appropriate template from a library using selection conditions, and assigns attribute values to placeholders to generate tailored emails.
Automatically adapts email templates to different recipients, reducing sender configuration work and improving user experience by allowing simultaneous sending of tailored emails to multiple recipients.
Smart Images

Figure CN119107058A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a mail processing method, device, equipment and storage medium. Background Art
[0002] With the rapid development of information technology and the widespread popularity of the Internet, email plays an increasingly important role in people's lives. In the process of widespread application of email, people gradually found that frequently writing emails with similar structures or similar contents is very time-consuming and prone to errors. The concept of email templates came into being. Email templates allow users to quickly generate emails according to preset formats and contents, thus saving time and energy.
[0003] Currently, technical personnel usually generate email templates by writing program codes. The number and styles of email templates are very limited. Different email templates cannot be adapted for different types of recipients, and senders are required to manually specify the email template to be used, resulting in a poor user experience for senders. Summary of the invention
[0004] Multiple aspects of the present application provide an email processing method, apparatus, device and storage medium to improve the sender's user experience during email processing.
[0005] The present application provides an email processing method, including:
[0006] Display the email preparation interface;
[0007] In response to a recipient configuration operation occurring in the email preparation interface, determining a target recipient;
[0008] Searching for attribute information corresponding to the target recipient, wherein the attribute information includes one or more attribute fields and corresponding attribute values;
[0009] For any email template included in the email template library, determining a selection condition corresponding to the email template, wherein the selection condition includes a target attribute field for describing a recipient attribute feature and a corresponding target attribute requirement;
[0010] If the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, the email template is selected as the target email template adapted to the target recipient;
[0011] Determine the target attribute placeholder that needs to be assigned a value in the target email template;
[0012] Assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder to generate a target email for the target recipient;
[0013] The receiving address of the target recipient and the target email are submitted to an email client, so that the target email is sent to the target recipient through the email client.
[0014] The embodiment of the present application also provides an email processing device, including a template configuration template, an email generation template, and an email sending template;
[0015] The template configuration module is used to generate an email template and store the email template in an email template library;
[0016] The email generation module is used to display an email preparation interface; determine a target recipient in response to a recipient configuration operation occurring in the email preparation interface; search for attribute information corresponding to the target recipient, wherein the attribute information includes one or more attribute fields and corresponding attribute values; determine a selection condition corresponding to any email template included in an email template library, wherein the selection condition includes a target attribute field for describing the attribute characteristics of the recipient and a corresponding target attribute requirement; if the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, then select the email template as a target email template adapted to the target recipient; determine a target attribute placeholder that needs to be assigned to the target email template; assign the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder, so as to generate a target email for the target recipient;
[0017] The mail sending module is used to submit the recipient address of the target recipient and the target mail to the mail client, so as to send the target mail to the target recipient through the mail client.
[0018] The embodiment of the present application also provides a computing device, including: a memory, a processor, and a communication component;
[0019] The memory is used to store one or more computer instructions;
[0020] The processor is coupled to the memory and the communication component and is configured to execute the one or more computer instructions for:
[0021] Display the email preparation interface;
[0022] In response to a recipient configuration operation occurring in the email preparation interface, determining a target recipient;
[0023] Searching for attribute information corresponding to the target recipient, wherein the attribute information includes one or more attribute fields and corresponding attribute values;
[0024] For any email template included in the email template library, determining a selection condition corresponding to the email template, wherein the selection condition includes a target attribute field for describing a recipient attribute feature and a corresponding target attribute requirement;
[0025] If the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, the email template is selected as the target email template adapted to the target recipient;
[0026] Determine the target attribute placeholder that needs to be assigned a value for the target email template;
[0027] Assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder to generate a target email for the target recipient;
[0028] The receiving address of the target recipient and the target email are submitted to the email client through the communication component, so that the target email is sent to the target recipient through the email client.
[0029] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the aforementioned mail processing method.
[0030] An embodiment of the present application also provides a computer program product, including a computer program; when the computer program is executed by a processor, the processor is caused to execute the aforementioned mail processing method.
[0031] In an embodiment of the present application, a service platform associated with an email template library is provided, and the email template contains multiple preset email templates. In the case of sending an email, in response to the recipient configuration operation occurring on the email preparation interface, the target recipient is determined, and the attribute information corresponding to the target recipient is found. Based on any email template contained in the email template library, the target attribute field and the corresponding target attribute requirement contained in the selection condition corresponding to the email template are determined. If the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, the email template is selected as the target email template adapted to the target recipient. The attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information is assigned to the target attribute placeholder to generate a target email for the target recipient, and the target email is sent to the target recipient. That is, the email templates in the email template library can be traversed based on the attribute information of the target recipient, so as to select the target email template adapted to the recipient according to the adaptation between the attribute information and the selection condition corresponding to the email template; and then the attribute placeholder in the email template is assigned based on the attribute information, so as to generate the target email for the template recipient. Through the mapping relationship between email templates and selection conditions, different email templates can be adapted for different types of recipients. The sender does not need to manually specify the template email template, which reduces the sender's configuration work and thus improves the sender's user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0033] Figure 1 A flowchart of a mail processing method provided for an exemplary embodiment of the present application;
[0034] Figure 2 A schematic diagram of an email preparation interface provided by an exemplary embodiment of the present application;
[0035] Figure 3 A schematic diagram of a template editing interface provided for another exemplary embodiment of the present application;
[0036] Figure 4 A schematic diagram of a placeholder configuration interface provided for another exemplary embodiment of the present application;
[0037] Figure 5 A schematic diagram of the structure of a class diagram provided for another exemplary embodiment of the present application;
[0038] Figure 6A configuration table corresponding to placeholder information provided by another exemplary embodiment of the present application;
[0039] Figure 7 A schematic diagram of an email processing flow in an exemplary application scenario provided for another exemplary embodiment of the present application;
[0040] Figure 8 A schematic diagram of the structure of a mail processing device provided for another exemplary embodiment of the present application;
[0041] Fig. 9 A schematic diagram of the structure of a computing device is provided for yet another exemplary embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0043] In view of the problem that different email templates cannot be adapted for different types of recipients in the prior art, and the sender needs to manually specify the email template to be used, resulting in a poor user experience for the sender, an embodiment of the present application provides a solution. The basic idea is: in response to the recipient configuration operation occurring on the email preparation interface, the target recipient is determined, and the attribute information corresponding to the target recipient is searched. Based on any email template contained in the email template library, the target attribute field and the corresponding target attribute requirements contained in the selection conditions corresponding to the email template are determined. If the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirements in the selection conditions, the email template is selected as the target email template adapted for the target recipient. The attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information is assigned to the target attribute placeholder to generate a target email for the target recipient, and the target email is sent to the target recipient. That is, based on the attribute information of the target recipient, the email templates in the email template library can be traversed to select the target email template that is adapted to the recipient according to the adaptation between the attribute information and the selection conditions corresponding to the email template; then, based on the attribute information, the attribute placeholders in the email template are assigned values to generate the target email for the template recipient. Through the mapping relationship between the email template and the selection conditions, different email templates can be adapted for different types of recipients. The sender does not need to manually specify the template email template, which reduces the sender's configuration work and improves the sender's user experience.
[0044] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0045] Figure 1 A flowchart of a mail processing method provided by an exemplary embodiment of the present application. The method can be executed by a data processing device, which can be implemented as a combination of software and / or hardware, and the data processing device can be integrated in a computing device. Figure 1 , the method comprising:
[0046] Step 100, displaying the email preparation interface;
[0047] Step 101, in response to a recipient configuration operation occurring in an email preparation interface, determining a target recipient;
[0048] Step 102, searching for attribute information corresponding to the target recipient, where the attribute information includes one or more attribute fields and corresponding attribute values;
[0049] Step 103, for any email template included in the email template library, determining a selection condition corresponding to the email template, wherein the selection condition includes a target attribute field for describing the attribute characteristics of the recipient and a corresponding target attribute requirement;
[0050] Step 104: If the attribute information includes a target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the target attribute requirement corresponding to the selection condition, the email template is selected as a target email template adapted to the target recipient;
[0051] Step 105, determining the target attribute placeholder that needs to be assigned a value to the target email template;
[0052] Step 106, assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder to generate a target email for the target recipient;
[0053] Step 107: submit the recipient address of the target recipient and the target email to the email client, so as to send the target email to the target recipient through the email client.
[0054] The email processing method provided in this embodiment can be applied to various scenarios where emails are needed, such as a scenario where an enterprise sends birthday greeting emails to internal employees, or a scenario where different recruitment emails are generated for interviewees from different departments. Of course, these are only exemplary, and this embodiment does not limit the application scenarios.
[0055] The mail processing method provided in this embodiment can be executed by a service platform. The service platform is a service platform that can provide a variety of services such as mail template generation service and mail preparation service. The service platform may include a server and a client. The server can be a personal server, an enterprise server or other types of processing terminals. This embodiment does not limit the type of the server. In physical implementation, the server can be a conventional server, a cloud server, a cloud host, a virtual center or other server devices. The client can be an application, a web page or a small program. This embodiment does not limit the type of the client.
[0056] In actual applications, the service platform can communicate with the email template library and the employee information library, and the email template library or the employee information library can be stored locally on the service platform or in the cloud. The email template library contains multiple email templates generated on the service platform, and each email template is associated with corresponding selection conditions, which include target attribute fields used to describe the attribute characteristics of the recipient and the attribute requirements corresponding to the target attribute fields. The employee information library contains the personal basic information, professional information, and work assessment based on salary and benefits of employees. The personal basic information includes but is not limited to name, work number, gender, ID number, contact number, email address, etc. The professional information includes but is not limited to the department to which it belongs, job title, current position, date of employment, etc. The work assessment includes but is not limited to job promotion, job adjustment, assessment results, rewards received, etc.
[0057] Figure 2 This is a schematic diagram of an email preparation interface provided by an exemplary embodiment of the present application. When an email needs to be sent, the email preparation interface can be displayed on the service platform. Figure 2 As shown, the email preparation interface may include a recipient configuration area and a target email template preview area. In response to the recipient configuration operation occurring in the email preparation interface, the target recipient of the email may be determined. The recipient configuration operation may include, but is not limited to, a click operation, an input operation, an import operation, etc. The recipient configuration operation may include configuring the notification object, the object identifier, the applicable template rule, etc. For example, in response to the notification object "candidate" entered by the sender in the configuration area and the employee number "0001", the candidate A corresponding to the employee number "0001" may be selected from all the candidates included in the employee information library as the target recipient, and the target recipient is displayed as "candidate A" in the target email template preview area. In response to the template rule specified by the sender for this email preparation in the configuration area, the target email template required for this email preparation may be hit from the multiple email templates included in the template rule in the email template library, and the template information related to the target email template may be obtained, such as the template name, template rule, etc., and the obtained template name "Template 1" and template rule "Description Class" may be displayed in the target email template preview area.
[0058] Furthermore, the target recipients may include recipients and CC recipients, and the email template may be associated with CC recipients. Continuing with the above example, if the target email template hit is associated with CC recipient "department leader", then the department leader "supervisor B" of candidate A is obtained. In this case, "candidate A" and "supervisor B" are both target recipients, where "candidate A" is the recipient and "supervisor B" is the CC recipient. The target recipients are displayed as "candidate A" and "supervisor B" in the target email template preview area.
[0059] In addition, the target recipient can also be automatically obtained through the flow of information on the service platform. In addition to preparing emails, the service platform can also provide functional services such as publishing recruitment information, supporting recruitment consultation, and interviewing candidates. The email preparation service can obtain personnel information provided by other functional services. The personnel information includes but is not limited to the notification object, notification object identifier, etc. Based on the personnel information, the corresponding recipient can be determined. The email preparation service can also determine the target template rule corresponding to the identity identifier based on the identity identifier of other functional services, select the target email template from multiple email templates associated with the target template rule based on the personnel information, and determine the CC associated with the recipient based on the CC object associated with the target email template, so as to use the recipient and CC as the target recipient.
[0060] Continue to refer Figure 1 In step 102, the attribute information corresponding to the target recipient can be searched, and the attribute information includes one or more attribute fields and corresponding attribute values. As mentioned above, the employee information database includes the employee's basic personal information, professional information, work assessment based on salary and benefits, etc., so that after the target recipient is determined, the attribute information corresponding to the target recipient can be obtained from the employee information database. The attribute fields contained in the attribute information are used to describe the attribute characteristics of the target recipient. The attribute fields may include but are not limited to name, gender, date of birth, work department, position, etc. It should be noted that if the target recipient includes the recipient and the carbon copy, the attribute information corresponding to the recipient is searched here as the attribute information corresponding to the target recipient, and there is no need to search for the attribute information corresponding to the carbon copy.
[0061] Based on this, the target email template adapted to the target recipient can be obtained according to the attribute information corresponding to the target recipient. The specific process of obtaining the target email template can be: for any email template contained in the email template library, determine the selection condition corresponding to the email template, the selection condition includes the target attribute field used to describe the attribute characteristics of the recipient and the target attribute requirement corresponding to the target attribute field; if the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the target attribute requirement corresponding to the selection condition, then the email template is selected as the target email template adapted to the target recipient. That is, if the attribute information corresponding to the target recipient includes the target attribute field in the selection condition, then continue to judge whether the attribute value corresponding to the target attribute field in the attribute information meets the target attribute requirement corresponding to the target attribute field in the selection condition; if it meets the target attribute requirement corresponding to the target attribute field, then the email template is determined as the target email template adapted to the target recipient. If it does not meet the target attribute requirement corresponding to the target attribute field or the attribute information corresponding to the target recipient does not include the target attribute field, then re-execute the above judgment process for the next email template until the target email template is determined or all the email templates in the email template library are processed.
[0062] In addition, in order to avoid the situation where an appropriate email template cannot be selected for the target recipient due to the limited selection conditions, a default template can be preset in the email template library. If the attribute values corresponding to the target attribute fields contained in the selection conditions corresponding to any email template in the email template library do not meet the attribute requirements corresponding to the target attribute fields in the selection conditions, the default template is selected as the target email template adapted for the target recipient.
[0063] For example, in the case where the template library contains two email templates and one default template, the selection condition corresponding to the first email template is "gender = female", where the target attribute field is "gender", and the attribute requirement corresponding to the target attribute field is "= female"; the selection condition corresponding to the first email template is "position = supervisor", where the target attribute field is "position", and the attribute requirement corresponding to the target attribute field is "= supervisor". If the attribute information corresponding to the target recipient does not contain the attribute field "gender", it means that the attribute information of the target recipient does not meet the selection condition corresponding to the first email template, and the first email template is not suitable for the target recipient. The selection condition corresponding to the second email template is obtained. If the attribute information corresponding to the target recipient contains the attribute field "position", the attribute value corresponding to the attribute field "position" in the attribute information corresponding to the target recipient is obtained. If the obtained attribute value is "supervisor", the second email template is used as the target email template adapted to the target recipient. If the obtained attribute value is not "supervisor", the default template is used as the target email template adapted to the target recipient.
[0064] In step 105, the target attribute placeholders that need to be assigned to the target email template may be determined. After the target email template is obtained, the template content of the target email template may be traversed to find the target attribute placeholders contained in the target email template from the template content. The number of target attribute placeholders may be one or more. The implementation method of determining the target attribute placeholders includes, but is not limited to, using a string find() function, an in operator, or a regular expression, etc., which is not limited in this embodiment.
[0065] Based on the determined target attribute placeholder, the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information can be assigned to the target attribute placeholder to generate a target email for the target recipient. That is, based on the determined target attribute placeholder, the attribute value under the attribute field corresponding to the target attribute placeholder can be obtained from the attribute information corresponding to the target recipient, and the target attribute placeholder in the target email template is replaced with the attribute value under the attribute field corresponding to the target attribute placeholder. After all the target attribute placeholders in the target email template are replaced, the target email generated for the target recipient can be obtained. If the target recipient includes the recipient and the carbon copy, the target attribute placeholder is assigned using the recipient's attribute information to generate the same target email for the recipient and the carbon copy.
[0066] After the target email is generated, the recipient address of the target recipient and the target email can be submitted to the email client to send the target email to the target recipient through the email client. In the case of multiple target recipients, multiple recipient addresses and target emails corresponding to each recipient address can be sent to the email client. The email client is a type of software tool that implements sending and receiving emails based on the email transmission protocol. The email client supports providing a service interface to the outside to allow other terminals to call the email client through the service interface, so that other terminals can use the email client to send and receive emails. In this embodiment, the service platform can call the email client through the service interface provided by the email client, so that the email client can send the target email to the target sender according to the recipient address provided by the service platform. In this embodiment, the service platform can determine the target recipient in response to the recipient configuration operation, and obtain the attribute information of the target recipient, so as to automatically select an adapted target email template for the target recipient based on the attribute information of the target recipient and the email template library; the target attribute placeholder in the target email template is replaced with the corresponding attribute value to generate a target email for the target recipient. The selection of the target email template is mainly determined by the attribute information corresponding to the target recipient. That is, different email templates can be matched to different recipients for the same email subject, without the sender having to configure templates separately for different recipients. This allows different emails to be sent to different recipients at the same time, which not only reduces the sender's workload, but also improves the efficiency of email sending, thereby further improving the sender's user experience.
[0067] In the above or below embodiments, the email templates included in the email template library may be configured in a variety of implementations.
[0068] Figure 3 A schematic diagram of a template editing interface provided by an exemplary embodiment of the present application. Figure 3 As shown, the template editing interface may include a template editing area and a template selection area. The template selection area supports the selection of blank templates and non-blank templates, that is, supports creating new email templates or modifying existing email templates; the template editing area supports visual editing of email templates.
[0069] In an optional implementation, a template editing interface can be displayed. In response to a template selection operation occurring in a template selection area of the template editing interface, the selected template to be edited can be displayed in the template editing area. The template to be edited displayed in the template editing area can be a blank template or a non-blank template, and can support modification of existing templates or addition of new templates. The template selection area can contain multiple template controls, and the template control displays a template name. The template name can be a template name defined when configuring a non-blank template, or it can be a "blank template". The template selection operation includes but is not limited to a click operation on the template control, a drag operation on the template control, and a selection operation on a data item on the template control. For example, when the mouse hovers over the template control, the "Edit" data item and the "Delete" data item can be displayed on the template control. In response to the selection operation of the "Delete" data item, the selected template to be edited can be deleted; in response to the selection operation of the "Edit" data item, the selected template to be edited can be displayed in the template editing area. Of course, these are only exemplary, and the selection of the template to be edited can also be achieved in other ways, which is not limited in this embodiment.
[0070] In this implementation, after the selected template to be edited is displayed in the template editing area, an email template corresponding to the template to be edited can be generated in response to the content editing operation and / or format editing operation initiated on the template to be edited in the template editing area of the template editing interface, and the email template library can be updated based on the generated email template. The update mentioned here essentially refers to adding the newly added email template to the email template library, or replacing the email template before editing in the email template library with the edited email template. The content editing operation and the format editing operation are to edit the template content of the email template from two dimensions. The content editing operation is essentially to edit the template content in the email template. The template content includes but is not limited to text, pictures, tables, links, etc. The format editing operation is essentially to edit the template elements in the email template. The template elements include but are not limited to attribute placeholders, content attributes, etc. The content attributes include but are not limited to fonts, font sizes, email headers and email footers, etc.
[0071] Exemplarily, in response to a content editing operation initiated for an email template to be edited, fixed content corresponding to the content editing operation may be obtained. In response to a format editing operation initiated for an email template to be edited, an attribute placeholder corresponding to the format editing operation may be obtained from preset optional placeholders. Based on the fixed content and the attribute placeholder, an email template corresponding to the template to be edited may be generated. Among them, the attribute placeholder is a symbol used to occupy a fixed position so as to facilitate the subsequent filling of the attribute value in the occupied fixed position. Configuring the variable content in the email template by means of placeholders can improve the maintainability of the email template, facilitate non-technical personnel who do not understand code writing to configure the email template, and break through the technical threshold.
[0072] Among them, the optional placeholder is a pre-configured attribute placeholder that can be selected. The attribute placeholder corresponds to an attribute field for describing the attribute of an object. The employee information database stores data in an object storage manner. The object is the basic unit of the employee information database, and the object may include employees, ranks, etc. When obtaining the attribute placeholder required in the email template, the object query operation occurring in the template editing area may be responded to first, the target object corresponding to the object query operation may be determined, and at least one optional placeholder adapted to the target object may be displayed in the template editing area. Then, in response to the placeholder selection operation occurring in the template editing area, the attribute placeholder corresponding to the placeholder selection operation is obtained from at least one optional placeholder adapted to the target object. Alternatively, the optional placeholder may be configured with a call permission, so as to filter out at least one optional placeholder that can be used when configuring the email template based on the call permission of the optional placeholder, and then, in response to the placeholder selection operation occurring in the template editing area, the attribute placeholder corresponding to the placeholder selection operation is obtained from at least one optional placeholder that can be used when configuring the email template.
[0073] In this way, by gradually filtering the attribute placeholders required to configure the email template, the search scope can be continuously narrowed, and unnecessary optional placeholders can be gradually excluded, so as to quickly locate the target result without traversing all optional placeholders. This can save computing resources and event costs, significantly improve the filtering efficiency, and thus improve the configuration efficiency of the email template.
[0074] After obtaining the fixed content and attribute placeholders, the first insertion position specified by the content editing operation for the fixed content in the template editing area, and the second insertion position specified by the format editing operation for the attribute placeholder in the template editing area can be determined. According to the first insertion position and the second insertion position, the attribute placeholder and the fixed content are inserted into the template to be edited to obtain the email template corresponding to the template to be edited. The first insertion position and the second insertion position can be combined to characterize the positional relationship between the fixed content and the attribute placeholder in the email template. By flexibly specifying the first insertion position and the second insertion position, more controllability is provided for the content layout in the email template, so that emails generated based on the email template can provide recipients with a more comfortable reading experience.
[0075] The first insertion position and the second insertion position may be specified in the same or different ways. The first insertion position and / or the second insertion position may be specified by specifying the position of the cursor in the template editing area when performing content editing and / or format editing operations as the first insertion position and / or the second insertion position; or the coordinate system may be displayed in the template editing area, the insertion coordinates configured for the fixed content may be specified as the first insertion position, and the insertion coordinates configured for the attribute placeholder may be specified as the second insertion position, and the coordinate system may not be displayed in the template content after the email template is generated. Of course, these are only exemplary, and the way to specify the insertion position is not limited here.
[0076] In addition to this implementation, the fixed content and attribute placeholders may also be inserted into the template to be edited according to the configuration order of the fixed content and attribute placeholders to obtain the email template corresponding to the template to be edited. The method of generating the email template based on the fixed content and attribute placeholders is not limited here.
[0077] In this implementation, in response to the conditional configuration operation for the template, the selection condition configured for the email template can be obtained to obtain the selection condition corresponding to the email template. For example, the interface corresponding to the selection condition code can be displayed, and in response to the conditional configuration operation for the template, the interface corresponding to the selection condition code is associated with the email template to obtain the selection condition corresponding to the email template. The selection condition is used to control the use permission of the email template. When the selection condition is met, the email template corresponding to the selection condition is allowed to be used.
[0078] Optionally, in response to the conditional configuration operation for the email template, a conditional placeholder corresponding to the conditional configuration operation can be selected from the preset optional placeholders; the attribute requirements configured for the attribute field corresponding to the conditional placeholder are obtained, and the attribute requirements include a specified attribute value and a judgment operator; based on the attribute field corresponding to the conditional attribute placeholder and the attribute requirements configured for the attribute field, the selection condition configured for the email template is obtained. The attribute field corresponding to the conditional placeholder can be used to describe the attribute characteristics of the recipient, and the attribute requirements are used to authenticate the recipient based on the attribute characteristics. If the attribute field corresponding to the conditional placeholder is "gender", the attribute requirement corresponding to the attribute field can be "=female", where "female" is the specified attribute value and "=" is the judgment operator. The judgment operator includes but is not limited to greater than, less than, equal to, contain, and, or, non, etc. Therefore, the selection condition configured for the email template based on the conditional placeholder is "gender=female".
[0079] It should be noted that the condition placeholder can be the same as or different from the attribute placeholder inserted into the email template mentioned above. Based on the condition placeholder and the judgment operator, the selection conditions corresponding to the email template are configured in a more intuitive way, which simplifies the configuration process of the selection conditions and improves the configuration efficiency of the selection conditions. In addition, there is no need to write code, which overcomes the technical threshold and allows non-technical personnel to maintain the selection conditions according to changes in requirements, ensuring the accuracy of the selection conditions.
[0080] Of course, in this embodiment, other implementations may also be used to configure the email template, which is not limited in this embodiment.
[0081] In an optional embodiment, a corresponding template rule may be associated with the email template. In response to a template rule association operation occurring in the template editing area, the template rule associated with the email template tag may be marked. Figure 2 The email preparation interface also supports template rule selection operations. In response to the template rule selection operation occurring in the email preparation interface, the target template rule specified for the target recipient can be determined, and the email template associated with the target template rule can be searched from the email template library. For any email template block found, the selection condition corresponding to the email template is determined, so as to obtain the target email template adapted to the target recipient from the email template found and associated with the target template rule based on the selection condition. It should be noted that the multiple email templates contained under each template rule include a default template, and the default templates associated with different template rules can be the same or different.
[0082] In addition, corresponding viewing permissions and notification objects can also be configured for the email template on the template editing interface. In response to the permission configuration operation occurring in the template editing area, the email template is configured with associated viewing permissions. When generating a target email, the viewing permissions corresponding to the sender can be checked, and based on the attribute information corresponding to the target recipient, the email template associated with the viewing permissions corresponding to the sender can be searched from the email template library. For any email template block in the email template associated with the viewing permissions corresponding to the sender, the selection condition corresponding to the email template is determined, so as to obtain the target email template adapted to the target recipient from the email template associated with the viewing permissions corresponding to the sender based on the selection condition.
[0083] Based on this, by configuring template rules and viewing permissions for email templates, senders can quickly and accurately obtain the required target email templates, thereby further improving the efficiency of generating target emails. In addition, configuring viewing permissions for email templates can also avoid the abuse of email templates, thereby ensuring the rationality of email template use.
[0084] In addition, the corresponding notification object and CC object can be configured for the email template, and there is an association between the notification object and the CC object. The notification object is used to represent the role of the recipient, and the CC object is used to represent the role of the CC recipient. For example, when the notification object is "employee", the CC object can be "department leader". When preparing an email, the notification object ID configured on the email preparation interface can be obtained, and based on the email ID, the target employee that matches the object ID can be selected from the personnel information associated with the "employee" object as the recipient, and then the department leader of the target employee can be obtained from the employee information database as the CC recipient. In this way, emails can be sent to employees and department leaders at the same time, which not only releases work tasks to employees, but also synchronizes work progress to department leaders, making it easier to carry out work and plan follow-up work more reasonably.
[0085] In the above or below embodiments, the optional placeholder may be configured in a variety of implementations.
[0086] Figure 4 A schematic diagram of a placeholder configuration interface provided by another exemplary embodiment of the present application. Figure 4 As shown, in an optional implementation of configuring an optional placeholder, a placeholder configuration interface can be displayed, and in response to a placeholder configuration operation occurring on the placeholder configuration interface, an optional placeholder corresponding to the placeholder configuration operation can be obtained. The placeholder configuration operation may include selecting an object, selecting an attribute field of the object, configuring call permissions, etc., wherein the call permissions correspond to one or more template rules, and the optional placeholder can only be used in the template rules corresponding to the call permissions. A class diagram associated with the attribute field corresponding to the optional placeholder is obtained to configure an assignment function for the optional placeholder based on the class diagram, and the assignment function configured for the optional placeholder is displayed on the placeholder configuration interface.
[0087] Optionally, the class diagram may include multiple objects and associations between the multiple objects, and each object includes at least one attribute field and the attribute value type and attribute value acquisition function corresponding to each attribute field. Based on this, when configuring an assignment function for an optional placeholder based on the class diagram, one or more target objects associated with the attribute field corresponding to the optional placeholder may be searched from the multiple objects included in the class diagram. Then, the target attribute value type and at least one target attribute value acquisition function associated with the attribute field corresponding to the optional placeholder are searched from the one or more target objects. Based on the association between the one or more target objects, the function order between the main object name in the one or more target objects and the at least one target attribute value acquisition function is determined, so as to generate an assignment function corresponding to the optional placeholder based on the main object name, the target attribute value type and the at least one target attribute value acquisition function arranged in the function order.
[0088] In this embodiment, an intuitive placeholder configuration interface is provided to configure optional placeholders in a visual manner, breaking the limitation of technical thresholds, so that non-technical personnel can also customize optional placeholders. Non-technical personnel can customize optional placeholders according to personal needs or preferences on the placeholder configuration interface, thereby realizing customization of email templates, making the configured email templates more suitable for their own needs.
[0089] Figure 5 A schematic diagram of a class diagram is provided for another exemplary embodiment of the present application. Figure 5 As shown, the class diagram contains two objects Employee and DutyInfo. The Employee object contains two attribute fields name and originalDuty and two attribute value acquisition functions getName() and getDutyInfo(); the DutyInfo object contains two attribute fields DutyNumber and DutyName and two attribute value acquisition functions getDutyNumber() and getDutyName(). If the optional placeholder is an employee position, it can be determined that the attribute field corresponding to the optional placeholder is DutyName. Based on the objects contained in the class diagram, it can be determined that the target objects associated with DutyName are Employee and DutyInfo, at least one target attribute value acquisition function associated with DutyName is getDutyInfo() and getDutyName(), and the target attribute value type associated with DutyName is String. According to the association relationship between the two target objects, it can be determined that the main object is named Employee, and the function order between the target attribute value acquisition functions is {getDutyInfo(), getDutyName()}. Based on this, the assignment function corresponding to the optional placeholder can be obtained as {Employee|String|getDutyInfo():getDutyName()}.
[0090] In this embodiment, any optional placeholder has corresponding placeholder information, which includes but is not limited to placeholder id, assignment function, remark information, etc. The placeholder information has corresponding configuration table, which is used to configure the format of the placeholder information. Figure 6 A configuration table corresponding to placeholder information is provided for another exemplary embodiment of the present application. Figure 6As shown, the first row contains multiple key values. From left to right, the first key value Field represents the placeholder information, which includes the placeholder id, the assignment function field_command, the remark information desc, etc.; the second key value Type represents the database storage type corresponding to the placeholder information; the third key value Null indicates whether the placeholder information can be empty; the fourth key value Key represents the information type corresponding to the placeholder information, PRI represents unique, for example, each placeholder id is unique, and MUL represents that the value can be repeated; the fifth key value Default represents the default value of the placeholder information, and the default value is usually set to NULL; the sixth key value Extra represents the additional supplementary information for the placeholder information, auto_Increment indicates that the placeholder information is self-incrementing. Generally, when the information type of the placeholder information is PRI, the additional supplementary information is auto_Increment, and in other cases, the additional supplementary information is usually empty.
[0091] In this embodiment, based on the assignment function configured for the optional placeholder, when performing the assignment in the process of generating the email, the assignment function associated with the target attribute placeholder can be obtained, and the attribute value under the attribute field corresponding to the target attribute placeholder can be obtained according to the assignment function to assign the attribute value to the target attribute placeholder. Through the preset assignment function, a large number of target attribute placeholders can be assigned at the same time, so that multiple target emails can be quickly generated, which improves the efficiency of email generation.
[0092] Figure 7 The following is a schematic diagram of an email processing flow in an exemplary application scenario provided by another exemplary embodiment of the present application. Figure 7 As shown, this exemplary application scenario mainly includes a template preparation stage and an email preparation stage.
[0093] In the template preparation stage, the fixed content entered by the technical / non-technical personnel in the template editing interface can be obtained, and it is determined whether there is a property placeholder required for configuring the email template in the optional placeholders that can be selected on the template editing interface. If so, the property placeholder required for configuring the email template is obtained from it, and the email template is generated based on the fixed content and the property placeholder; if not, jump to the placeholder configuration interface, respond to the placeholder configuration operation initiated by the technical / non-technical personnel on the placeholder configuration interface, and generate the property placeholder required for configuring the email template. After the configuration is completed, the newly configured property placeholder will be automatically synchronized to the optional placeholders that can be selected on the template editing interface, so that the property placeholder required for configuring the email template can be obtained from the template editing interface, and the email template is generated based on the fixed content and the property placeholder. The selection conditions and template rules configured by the technical / non-technical personnel for the email template on the template editing interface are obtained, and the email template is stored in the email template library. The email template contains multiple email templates associated with each template rule, and the email template has a corresponding selection condition.
[0094] In the email preparation stage, the target recipient can be determined in response to the recipient configuration operation initiated by the technical / non-technical personnel on the email preparation interface. The target recipient includes the recipient and the carbon copy. The corresponding carbon copy can be determined for the recipient based on the association between the notification object and the carbon copy object. In response to the template rule selection operation initiated by the technical / non-technical personnel on the email preparation interface, the target template rule specified for the target recipient is determined, and the email template associated with the target template rule is obtained from the email template library. The attribute information corresponding to the recipient is pulled from the employee information library, and the obtained email templates associated with the target template rule are traversed based on the attribute information. For the selection condition corresponding to any email template, if the attribute information contains the target attribute field in the selection condition, and the attribute value corresponding to the target attribute field in the attribute information meets the target attribute requirement corresponding to the selection condition, then the email template is selected as the target email template adapted to the recipient. If other email templates are not compatible with the target recipient, the default template included in the email template library is used as the target email template adapted to the target recipient, and the selection condition corresponding to the default template is "other email templates are not compatible with the target recipient". Based on this, the template content of the target email template can be traversed to determine the target attribute placeholders that need to be assigned in the target email template, and the attribute values under the attribute fields corresponding to the target attribute placeholders are obtained from the attribute information corresponding to the recipient by using the assignment functions associated with each target attribute placeholder, and the attribute values are assigned to the target attribute placeholders to generate the target email for the target recipient. The target email and the recipient address of the corresponding target recipient (including the recipient address of the recipient and the carbon copy address of the carbon copy recipient) are submitted to the email client to send the target email to the target recipient through the email client.
[0095] In this embodiment, in the template preparation stage, multiple email templates can be pre-generated by visual editing, and selection conditions and template rules can be associated with the email templates, so that the email templates can be stored in the template database according to the template rules. When the email template needs to be maintained, the email template can be maintained directly in the template editing interface, and the maintained results can be synchronized to the template database, so that the maintained email template can take effect in real time during the email preparation stage without modifying the code, which can effectively improve the maintenance efficiency of the email template.
[0096] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 101 to 103 can be device A; for another example, the execution subject of steps 101 and 102 can be device A, and the execution subject of step 103 can be device B; and so on.
[0097] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0098] Figure 8 FIG. 1 is a schematic diagram of a mail processing device provided by another exemplary embodiment of the present application. Figure 8 As shown, the mail processing device includes a template configuration module 81, a mail generation module 82 and a mail sending module 83;
[0099] The template configuration module 81 is used to generate an email template and store the email template in an email template library;
[0100] The mail generation module 82 is used to display the mail preparation interface; in response to the recipient configuration operation occurring in the mail preparation interface, determine the target recipient; search for the attribute information corresponding to the target recipient, the attribute information including one or more attribute fields and corresponding attribute values; for any mail template included in the mail template library, determine the selection condition corresponding to the mail template, the selection condition including the target attribute field for describing the attribute characteristics of the recipient and the corresponding target attribute requirement; if the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, then select the mail template as the target mail template adapted to the target recipient; determine the target attribute placeholder that needs to be assigned to the target mail template; assign the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder, so as to generate a target mail for the target recipient;
[0101] The mail sending module 83 is used to submit the recipient address of the target recipient and the target mail to the mail client, so as to send the target mail to the target recipient through the mail client.
[0102] It is worth noting that the technical details of the above-mentioned embodiments of the mail processing device can refer to the relevant description of the actions of the data processing device in the above-mentioned embodiments of the mail processing method. In order to save space, it will not be repeated here, but this should not cause a loss of the protection scope of this application. The mail processing device in the above-mentioned embodiments can be implemented as software or as a combination of software and hardware, and the mail processing device can be integrated in a computing device.
[0103] Fig. 9 A schematic diagram of a computing device provided as another exemplary embodiment of the present application is shown in FIG. Fig. 9 As shown, the computing device includes: a memory 90 , a processor 91 and a communication component 92 .
[0104] The processor 91 is coupled to the memory 90 and the communication component 92, and is used to execute the computer program in the memory 90 for:
[0105] Display the email preparation interface;
[0106] In response to a recipient configuration operation occurring in the email preparation interface, determining a target recipient;
[0107] Find the attribute information corresponding to the target recipient, where the attribute information includes one or more attribute fields and corresponding attribute values;
[0108] For any email template included in the email template library, determining a selection condition corresponding to the email template, wherein the selection condition includes a target attribute field used and a corresponding target attribute requirement;
[0109] If the attribute information includes a target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, the email template is selected as the target email template adapted to the target recipient;
[0110] Determine the target attribute placeholders that need to be assigned values in the target email template;
[0111] Assign the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder to generate a target email for the target recipient;
[0112] The receiving address of the target recipient and the target email are submitted to the email client through the communication component, so that the target email is sent to the target recipient through the email client.
[0113] In an optional embodiment, the processor 91 is further configured to:
[0114] Display the template editing interface, which includes the template editing area and the template selection area. The template selection area supports the selection of blank templates or non-blank templates. The template editing area supports visual editing of email templates.
[0115] In response to a template selection operation occurring in the template selection area, displaying the selected template to be edited in the template editing area;
[0116] In response to a content editing operation and / or a format editing operation initiated on the template to be edited in the template editing area, generating an email template corresponding to the template to be edited;
[0117] In response to the condition configuration operation for the email template, the selection condition configured for the email template is obtained.
[0118] In an optional embodiment, the processor 91 is further configured to:
[0119] In response to a template rule association operation occurring in the template editing area, marking the associated template rule for the email template;
[0120] In response to a template rule selection operation occurring in the email preparation interface, determining a target template rule specified for a target recipient;
[0121] For any email template included in the email template library, determine the selection conditions corresponding to the email template, including:
[0122] Search the email template associated with the target template rule from the email template library;
[0123] For any email template found, determine the selection conditions corresponding to the email template.
[0124] In an optional embodiment, in response to a content editing operation and / or a format editing operation initiated in the template editing area on the template to be edited, during the process of generating an email template corresponding to the template to be edited, the processor 91 is further configured to:
[0125] In response to a content editing operation initiated for the email template to be edited, obtaining fixed content corresponding to the content editing operation;
[0126] In response to initiating a format editing operation for the email template to be edited, obtaining an attribute placeholder corresponding to the format editing operation from preset optional placeholders;
[0127] Generate an email template corresponding to the template to be edited based on the fixed content and attribute placeholders.
[0128] In an optional embodiment, in response to a format editing operation initiated for a template to be edited, in a process of acquiring an attribute placeholder corresponding to the format editing operation from preset optional placeholders, the processor 91 is further configured to:
[0129] In response to an object query operation occurring in the template editing area, determining a target object corresponding to the object query operation;
[0130] In the template editing area, display at least one optional placeholder adapted to the target object;
[0131] In response to a placeholder selection operation occurring in the template editing area, an attribute placeholder corresponding to the placeholder selection operation is acquired from at least one optional placeholder adapted to the target object.
[0132] In an optional embodiment, in the process of generating an email template corresponding to the template to be edited based on the fixed content and the target attribute placeholder, the processor 91 is further configured to:
[0133] Determine a first insertion position specified by a content editing operation for fixed content in the template editing area;
[0134] Determine a second insertion position specified by the format editing operation for the attribute placeholder in the template editing area;
[0135] According to the first insertion position and the second insertion position, the attribute placeholder and the fixed content are inserted into the template to be edited, so as to obtain the email template corresponding to the template to be edited.
[0136] In an optional embodiment, in response to the conditional configuration operation for the email template, in the process of obtaining the selection condition configured for the email template, the processor 91 is further configured to:
[0137] In response to a conditional configuration operation on the email template, a conditional placeholder corresponding to the conditional configuration operation is selected from preset optional placeholders;
[0138] Get the attribute requirements configured for the attribute field corresponding to the conditional placeholder. The attribute requirements include the specified attribute value and the judgment operator.
[0139] Based on the attribute field corresponding to the conditional attribute placeholder and the attribute requirement configured for the attribute field, the selection condition configured for the email template is obtained.
[0140] In an optional embodiment, the processor 91 is further configured to:
[0141] Display the placeholder configuration interface;
[0142] In response to a placeholder configuration operation occurring on the placeholder configuration interface, obtaining an optional placeholder corresponding to the placeholder configuration operation;
[0143] Obtaining a class diagram associated with a property field corresponding to the optional placeholder, so as to configure an assignment function for the optional placeholder based on the class diagram;
[0144] Displays the assignment function configured for the optional placeholder on the placeholder configuration interface.
[0145] In an optional embodiment, the class diagram includes multiple objects and associations between the multiple objects, each object includes at least one object attribute and an attribute value type and an attribute value acquisition function corresponding to each object attribute. In the process of configuring an assignment function for an optional placeholder based on the class diagram, the processor 91 is further configured to:
[0146] Find one or more target objects associated with the attribute fields corresponding to the optional placeholder from among the multiple objects included in the class diagram;
[0147] Finding a target attribute value type and at least one target attribute value obtaining function associated with the attribute field corresponding to the optional placeholder from one or more target objects;
[0148] Determine, based on the association relationship between the one or more target objects, a main object name in the one or more target objects and a function order between at least one target attribute value acquisition function;
[0149] Based on the main object name, the target attribute value type and at least one target attribute value acquisition function arranged in function order, an assignment function corresponding to the optional placeholder is generated.
[0150] In an optional embodiment, in the process of assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder, the processor 91 is further configured to:
[0151] Get the assignment function associated with the target attribute placeholder;
[0152] According to the assignment function, obtain the attribute value under the attribute field corresponding to the target attribute placeholder;
[0153] Assigns the property value to the target property placeholder.
[0154] Further, if Fig. 9 As shown, the computing device also includes other components such as a display 93 and a power supply component 94 . Fig. 9 Only some components are shown schematically, and it does not mean that the computing device only includes Fig. 9 Components shown.
[0155] It is worth noting that the technical details in the above-mentioned embodiments of the computing device can refer to the relevant description of the actions of the computing device in the aforementioned embodiments of the email processing method. In order to save space, they will not be repeated here, but this should not cause a loss in the scope of protection of this application.
[0156] The embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps in the above-mentioned mail processing method can be implemented. It should be noted that the technical solution of the computer program and the technical solution of the above-mentioned mail processing method belong to the same concept, and the details of the technical solution of the computer program that are not described in detail can be found in the description of the technical solution of the above-mentioned mail processing method.
[0157] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement the steps that can be executed by a computing device in the above method embodiment.
[0158] Above Fig. 9 The memory in the computer is used to store computer programs and can be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0159] Above Fig. 9The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0160] Above Fig. 9 The display in the embodiment includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0161] Above Fig. 9 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.
[0162] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0166] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0167] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0168] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0169] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0170] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A mail processing method, characterized in that: Applicable to service platforms, including: Display the email preparation interface; In response to a recipient configuration operation occurring in the email preparation interface, determining a target recipient; Searching for attribute information corresponding to the target recipient, wherein the attribute information includes one or more attribute fields and corresponding attribute values; For any email template included in the email template library, determining a selection condition corresponding to the email template, wherein the selection condition includes a target attribute field for describing a recipient attribute feature and a corresponding target attribute requirement; If the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, the email template is selected as the target email template adapted to the target recipient; Determine the target attribute placeholder that needs to be assigned a value in the target email template; Assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder to generate a target email for the target recipient; The receiving address of the target recipient and the target email are submitted to an email client, so that the target email is sent to the target recipient through the email client.
2. The method according to claim 1, characterized in that Also includes: Displaying a template editing interface, wherein the template editing interface includes a template editing area and a template selection area, wherein the template selection area supports selection of a blank template or a non-blank template, and wherein the template editing area supports visual editing of email templates; In response to a template selection operation occurring in the template selection area, displaying the selected template to be edited in the template editing area; In response to a content editing operation and / or a format editing operation initiated on the template to be edited in the template editing area, generating an email template corresponding to the template to be edited; In response to the condition configuration operation for the email template, a selection condition configured for the email template is obtained.
3. The method according to claim 2, characterized in that Also includes: In response to a template rule association operation occurring in the template editing area, marking the associated template rule for the email template; In response to a template rule selection operation occurring in the email preparation interface, determining a target template rule specified for the target recipient; The step of determining, for any email template included in the email template library, a selection condition corresponding to the email template includes: Searching for an email template associated with the target template rule from the email template library; For any email template found, determine the selection condition corresponding to the email template.
4. The method according to claim 2, characterized in that: The generating of the email template corresponding to the template to be edited in response to the content editing operation and / or format editing operation initiated on the template to be edited in the template editing area includes: In response to a content editing operation initiated for the email template to be edited, obtaining fixed content corresponding to the content editing operation; In response to initiating a format editing operation for the email template to be edited, acquiring an attribute placeholder corresponding to the format editing operation from preset optional placeholders; Based on the fixed content and the attribute placeholder, an email template corresponding to the template to be edited is generated.
5. The method according to claim 4, characterized in that The step of obtaining, in response to the format editing operation initiated for the template to be edited, a property placeholder corresponding to the format editing operation from preset optional placeholders includes: In response to an object query operation occurring in the template editing area, determining a target object corresponding to the object query operation; In the template editing area, display at least one optional placeholder adapted to the target object; In response to a placeholder selection operation occurring in the template editing area, an attribute placeholder corresponding to the placeholder selection operation is acquired from at least one optional placeholder adapted to the target object.
6. The method according to claim 4, characterized in that The generating, based on the fixed content and the target attribute placeholder, an email template corresponding to the template to be edited includes: Determine a first insertion position specified by the content editing operation for the fixed content in the template editing area; Determine a second insertion position specified by the format editing operation for the attribute placeholder in the template editing area; According to the first insertion position and the second insertion position, the attribute placeholder and the fixed content are inserted into the template to be edited, so as to obtain an email template corresponding to the template to be edited.
7. The method according to claim 2, characterized in that The step of obtaining the selection condition configured for the email template in response to the condition configuration operation for the email template includes: In response to a conditional configuration operation on the email template, selecting a conditional placeholder corresponding to the conditional configuration operation from preset optional placeholders; Acquire the attribute requirement configured for the attribute field corresponding to the condition placeholder, wherein the attribute requirement includes a specified attribute value and a judgment operator; Based on the attribute field corresponding to the conditional attribute placeholder and the attribute requirement configured for the attribute field, the selection condition configured for the email template is obtained.
8. The method according to claim 4, characterized in that Also includes: Display the placeholder configuration interface; In response to a placeholder configuration operation occurring on the placeholder configuration interface, obtaining an optional placeholder corresponding to the placeholder configuration operation; Acquire a class diagram associated with a property field corresponding to the optional placeholder, so as to configure an assignment function for the optional placeholder based on the class diagram; The assignment function configured for the optional placeholder is displayed on the placeholder configuration interface.
9. The method according to claim 8, characterized in that The class diagram includes multiple objects and associations between the multiple objects, each object includes at least one object attribute and an attribute value type and an attribute value acquisition function corresponding to each object attribute, and configuring an assignment function for the optional placeholder based on the class diagram includes: Searching, from a plurality of objects included in the class diagram, one or more target objects associated with the attribute field corresponding to the optional placeholder; Searching, from the one or more target objects, a target attribute value type and at least one target attribute value obtaining function associated with the attribute field corresponding to the optional placeholder; Based on the association relationship between the one or more target objects, determining a function order between a main object name in the one or more target objects and the at least one target attribute value acquisition function; Based on the main object name, the target attribute value type and at least one target attribute value acquisition function arranged in the function order, an assignment function corresponding to the optional placeholder is generated.
10. The method according to claim 8 or 9, characterized in that: The assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder includes: Obtaining the assignment function associated with the target attribute placeholder; According to the assignment function, obtain the attribute value under the attribute field corresponding to the target attribute placeholder; Assign the attribute value to the target attribute placeholder.
11. A mail processing device, characterized in that: Including template configuration template, email generation template and email sending template; The template configuration module is used to generate an email template and store the email template in an email template library; The email generation module is used to display the email preparation interface; In response to a recipient configuration operation occurring in the email preparation interface, determining a target recipient; Searching for attribute information corresponding to the target recipient, wherein the attribute information includes one or more attribute fields and corresponding attribute values; For any email template included in the email template library, determining a selection condition corresponding to the email template, wherein the selection condition includes a target attribute field for describing the attribute characteristics of the recipient and a corresponding target attribute requirement; if the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, then the email template is selected as a target email template adapted to the target recipient; Determine the target attribute placeholder that needs to be assigned a value for the target email template; Assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder to generate a target email for the target recipient; The mail sending module is used to submit the recipient address of the target recipient and the target mail to the mail client, so as to send the target mail to the target recipient through the mail client.
12. A computing device, characterized in that: Includes memory, processor, and communication components; The memory is used to store one or more computer instructions; The processor is coupled to the memory and the communication component and is configured to execute the one or more computer instructions for: Display the email preparation interface; In response to a recipient configuration operation occurring in the email preparation interface, determining a target recipient; Searching for attribute information corresponding to the target recipient, wherein the attribute information includes one or more attribute fields and corresponding attribute values; For any email template included in the email template library, determining a selection condition corresponding to the email template, wherein the selection condition includes a target attribute field for describing a recipient attribute feature and a corresponding target attribute requirement; If the attribute information includes the target attribute field, and the attribute value corresponding to the target attribute field in the attribute information meets the corresponding target attribute requirement in the selection condition, the email template is selected as the target email template adapted to the target recipient; Determine the target attribute placeholder that needs to be assigned a value for the target email template; Assigning the attribute value under the attribute field corresponding to the target attribute placeholder in the attribute information to the target attribute placeholder to generate a target email for the target recipient; The receiving address of the target recipient and the target email are submitted to the email client through the communication component, so that the target email is sent to the target recipient through the email client.
13. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the mail processing method according to any one of claims 1 to 10.
