CN109977379A - Mail generation method, device, electronic equipment and computer readable storage medium - Google Patents

Mail generation method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN109977379A
CN109977379A CN201811574424.3A CN201811574424A CN109977379A CN 109977379 A CN109977379 A CN 109977379A CN 201811574424 A CN201811574424 A CN 201811574424A CN 109977379 A CN109977379 A CN 109977379A
Authority
CN
China
Prior art keywords
template
email template
mail
text
email
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811574424.3A
Other languages
Chinese (zh)
Inventor
时文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811574424.3A priority Critical patent/CN109977379A/en
Publication of CN109977379A publication Critical patent/CN109977379A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of mail generation method, device, electronic equipment and computer readable storage mediums.The described method includes: receiving the request of creation email template;Request creation according to creation email template includes the email template of fixed form text;For the email template allocation template identification number, the response message that the template identification number output is created into the request of the email template;Receive the solicited message for calling the email template, wherein call the parameter value of template identification number in the solicited message of the email template including the email template, text parameter;Judge whether the data in the received solicited message for calling the email template are legal;And when determining that the data in the solicited message for calling the email template are legal according to the solicited message for calling the email template, email template corresponding with the template identification number is configured, to generate the mail of the parameter value comprising the text parameter.

Description

Mail generation method, device, electronic equipment and computer readable storage medium
Technical field
The present invention relates to field of Internet communication, and in particular to a kind of mail generation method, device, electronic equipment and calculating Machine readable storage medium storing program for executing.
Background technique
In the prior art in order to avoid business personnel needs continually to create mail and the duplicate Mail Contents of input, postal Part platform development personnel are the corresponding email template of staff development of business department, so that business personnel can be according to postal Part template generation Email is simultaneously sent.However, existing email template in the industry is more single, complicated data are not supported Summarize, is not able to satisfy complicated automatic mail template demand.
Summary of the invention
In view of the foregoing, it is necessary to propose a kind of mail generation method, device, electronic equipment and computer-readable storage Medium, so that mail can flexibly change the data of mail text, so that the mail of creation supports complicated data format.
The first aspect of the application provides a kind of mail generation method, which comprises
The request of creation email template is received, wherein including fixed form text in the request of the creation email template;
Request creation according to the creation email template includes the email template of the fixed form text;
For the email template allocation template identification number, the template identification number output is created into the email template The response message of request;
Receive the solicited message for calling the email template, wherein call in the solicited message of the email template and include The parameter value of the template identification number of the email template, text parameter;
Judge whether the data in the received solicited message for calling the email template are legal;And
When determining that the data in the solicited message for calling the email template are legal according to the calling email template Solicited message configures email template corresponding with the template identification number, includes the text parameter to generate Parameter value mail.
Preferably, the method also includes:
A prompt information, which is issued, when determining that the data in the solicited message for calling the email template are illegal reminds use Call the solicited message of the email template wrong in family.
Preferably, whether the data that judge in the received solicited message for calling the email template are legal includes:
When the template identification number in the solicited message for calling email template meets the rule that preset template identification number is constituted When determine call email template solicited message in data it is legal, otherwise determine call email template solicited message in number According to illegal.
Preferably, the request creation according to the creation email template includes the mail of the fixed form text Template includes
The multiple text parameters pre-established are read, wherein each text parameter has an identifier, often The identifier of the one text parameter is used to indicate the function and usage and variable meaning of text parameter;
Each text parameter and its corresponding identifier are returned to user terminal;And
It receives the parameter that user inputs on the user terminal and chooses instruction and parameter offset commands, according to described Parameter choose instruct determine user selection the text parameter, and by the text parameter determined be automatically inserted into The mail text position of the email template indicated by the corresponding parameter offset commands of the text parameter.
Preferably, the text parameter pre-established includes vehicle insurance variable and non-vehicle insurance variable.
Preferably, the time of the mail sent in the solicited message for calling email template including posting address, expectation, The method also includes:
Whether detection current time reaches the expectation sending time for calling the solicited message of the email template to be included, And the mail of generation is sent to tune when determining that current time reaches the expectation sending time that the solicited message included The posting address that solicited message with the email template is included.
It preferably, include that mail address, posting address are responsible in examination & approval in the solicited message for calling email template, it is described Method further include:
Judge whether the transmission of the mail needs to examine;
If the mail needs to examine, send the mail in supervisor's email address;And
If the mail does not need to examine, send the mail in the posting address.
The second aspect of the application provides a kind of mail generating means, and described device includes:
First receiving module, for receiving the request of creation email template, wherein in the request of the creation email template Including fixed form text;
Template creation module, for including the fixed form text according to the request creation of the creation email template Email template;
Module is replied, is creation by the template identification number output for being the email template allocation template identification number The response message of the request of the email template;
Second receiving module, for receiving the solicited message for calling the email template, wherein call the email template Solicited message in include the template identification number of the email template, text parameter parameter value;
Judgment module, for judging whether the data in the received solicited message for calling the email template are legal;And
Mail generation module, for when determining that the data in the solicited message for calling the email template are legal according to tune With the solicited message of the email template, email template corresponding with the template identification number is configured, to generate packet The mail of parameter value containing the text parameter.
The third aspect of the application provides a kind of electronic equipment, and the electronic equipment includes processor, and the processor is used The mail generation method is realized when executing the computer program stored in memory.
The fourth aspect of the application provides a kind of computer readable storage medium, is stored thereon with computer program, described The mail generation method is realized when computer program is executed by processor.
The present invention determines stent according to the corresponding parameter value of text parameter in the solicited message for calling email template The parameter value of each text parameter in plate text will be present in each text parameter replacement of the text position of email template For the parameter value of text parameter, to obtain the new mail for meeting demand.To enable mail flexibly to change mail text Data and make the mail of creation support complicated data format.
Detailed description of the invention
Fig. 1 is the applied environment figure of mail generation method in an embodiment of the present invention.
Fig. 2 is the flow chart of mail generation method in an embodiment of the present invention.
Fig. 3 is the structure chart of mail generating means in an embodiment of the present invention.
Fig. 4 is the structure chart of template creation module in an embodiment of the present invention.
Fig. 5 is the schematic diagram of electronic equipment of the present invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, embodiments herein and embodiment In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Preferably, mail generation method of the present invention is applied in one or more electronic equipment.The electronic equipment is It is a kind of can be according to the instruction for being previously set or storing, the automatic equipment for carrying out numerical value calculating and/or information processing, hardware packet Include but be not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment can be the calculating such as desktop PC, laptop, tablet computer and cloud server Equipment.The equipment can carry out man-machine friendship by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices with user Mutually.
Embodiment 1
Fig. 1 is the applied environment figure of mail generation method in an embodiment of the present invention.
As shown in fig.1, the mail generation method application is in the server 1.The server 1 is by network 3 and uses Family terminal 2 connects.Wherein, the network 3 can be cable network, be also possible to wireless network, such as radio, Wireless Fidelity (Wireless Fidelity, WIFI), honeycomb, satellite, broadcast etc..In one embodiment, user passes through the user terminal 2 send the request of creation email template to the server 1, and the server 1 creates email template after receiving above-mentioned request. In present embodiment, the user terminal 2 can be computer, the devices such as laptop.The server 1 can be single Server is also possible to multiple server clusters, such as Cloud Server.
Fig. 2 is the flow chart of mail generation method in an embodiment of the present invention.The flow chart according to different requirements, The sequence of middle step can change, and certain steps can be omitted.
As shown in fig.2, the mail generation method specifically includes the following steps:
Step S201 receives the request of creation email template, wherein including fixing in the request of the creation email template Template text.
In present embodiment, user can propose creation mail by the mail platform management system of the user terminal 2 The request of template, and the mail text information for inputting oneself customization has fixed form to issue as fixed form text The request of the email template of text.In present embodiment, the fixed form text includes mail beginning address and segment identification. For example, the fixed form text of user's input may is that
" distinguished client, you are good!
The xxx that you insure will nearly expire in xxx days, if necessary to continue insurance, please complete continuation of insurance formality as early as possible, thanks!".
Step S202 includes the mail mould of the fixed form text according to the request creation for creating the email template Plate.
In present embodiment, when server 1 receives the request of the email template of the sending of user terminal 2, according to creation The fixed form text for including in the request of the email template calls the email template pre-established to generate program to establish packet Email template containing one or more text parameters.
In present embodiment, the step S202 includes the fixation according to the request creation for creating the email template The email template of template text includes:
(S2021) the multiple text parameters pre-established are read.
In present embodiment, multiple text parameters, each text ginseng are pre-established in the background data base of server Variable has an identifier, is that database administrator is pre- for indicating the function and usage and variable meaning of text parameter If setting.In present embodiment, text parameter is the parameter of the alterable adjustment of parameter value of the email template, when user's end When end 2 receives the assignment command based on the text parameter, the parameter value of text parameter can be modified to meet The transformable demand of email text data.
In present embodiment, for established each text parameter, the mark comprising each text parameter is generated The display list is returned to the mail platform management system of user terminal 2, and makes mail platform management by the display list of symbol System is shown the display list.For example, the text parameter pre-established includes vehicle insurance variable and non-vehicle insurance variable Etc. two kinds of variable.In vehicle insurance variable, the identifier of each variable includes but is not limited to insurer's name, license plate etc.. In non-vehicle insurance variable, identifier corresponding with each variable includes but is not limited to insurer's name, name of product, last year guarantor Take, last year number of policy commencement of coverage and insurance stop phase etc..
(S2022) each text parameter and its corresponding identifier are returned to user terminal 2, so that user is aobvious Sending parameter selection instruction and parameter offset on the user terminal 2 of the text parameter and the identifier is shown with to refer to It enables.
In present embodiment, user is according to the identifier of each text parameter variable, it may be appreciated that each text parameter Corresponding function and usage and variable meaning, so that issuing variable based on identifier chooses instruction.
(S2023) it receives the parameter that user inputs on the user terminal 2 and chooses instruction and parameter offset commands, according to The parameter chooses the text parameter for instructing and determining user's selection, and the text parameter determined is automatically inserted into To the mail text position of email template indicated by the parameter offset commands corresponding with text parameter.
In present embodiment, server 1 obtains the variable that user issues and chooses instruction, chooses instruction institute according to the variable Corresponding each identifier searches text parameter corresponding with wherein each identifier, and the text parameter is determined For the text parameter of email template.In present embodiment, each the text parameter chosen for user can quilt automatically It is inserted at the mail text position of email template indicated by parameter offset commands, it, will be every with when generating e-mail messages Parameter value corresponding to one text parameter is shown in the mail text position that the text parameter is inserted into.For example, when using The identifier for the text parameter that family is chosen is insurer's name, license plate and nearest insurance only phase, and insurer's name, license plate And insurance recently stop the corresponding text parameter of phase institute be applicantName, vehicleNo and Each text parameter is then inserted into mail text envelope according to the parameter offset commands that user issues by policyEndDate After the specified mail text position of breath, the obtained mail text information comprising text parameter may is that " distinguished [applicantName] client, your vehicle [vehicleNo] will insure in [policyEndDate] to expire ".
This case is chosen according to the parameter and is instructed, and determines the text parameter and every by what is determined of user's selection One text parameter is inserted into mail text position indicated by its corresponding described parameter offset commands, so that email template The data of mail text can flexibly be changed, so that the email template of creation supports complicated data format.
Step S203 is the email template allocation template identification number, by the template identification number output for described in creation The response message of the request of email template.
In present embodiment, for the ease of distinguishing the mail mould of corresponding different fixed form text informations, text parameter Plate distributes a template identification number in one email template of every generation for the email template.For example, the template identification It number include but is not limited to the serial number generated according to time sequencing and the customized template name of business personnel etc..Present embodiment In, by the template identification number of generation, information is back to the user terminal 2 that sending creates the request of email template in response, so that After user records the template identification number by user terminal 2, facilitate use postal corresponding to the template identification user's next time Part template sends the mail that there is identical services mail to generate demand.
Step S204 receives the solicited message for calling email template, wherein in the solicited message for calling email template The parameter value of template identification number, text parameter including email template.
In present embodiment, user terminal 2 sends the solicited message for calling email template to server 1.The server 1 Receive the solicited message for the calling email template that user terminal 2 is sent.In other embodiments, described to call email template In solicited message other than including the template identification number of email template, the parameter value of text parameter, with may also include addressee The time for the mail that location, expectation are sent.
Step S205 judges whether the data in the received solicited message for calling email template are legal, if calling postal Data in the solicited message of part template are illegal, then follow the steps S206.If data are legal to then follow the steps S207.
In present embodiment, whether server 1 passes through the template identification number in the solicited message for judging to call email template Meet the rule that preset template identification number is constituted and determines whether the data in the solicited message for calling email template are legal.Work as tune When meeting the rule that preset identification number is constituted with the template identification number in the solicited message of email template, determines and call mail mould Data in the solicited message of plate are legal, otherwise determine that the data in the solicited message for calling email template are illegal.
Step S206 issues a prompt information and user is reminded to call the solicited message of the email template wrong.
In present embodiment, when the solicited message of user's calling email template is wrong, the server 1 is sent to user 2 prompting message of terminal is to remind user, such as the prompting message can be for " solicited message for calling email template has Accidentally, it please retransmit ".
Step S207, according to the solicited message for calling email template, to mail mould corresponding with the template identification number Plate is configured, to generate the mail of the parameter value comprising the text parameter.
In present embodiment, according to the corresponding parameter value of text parameter in the solicited message for calling email template, really Determine the parameter value of each text parameter in fixed form text.It will be present in each text ginseng of the text position of email template Variable replacement is the parameter value of text parameter, to obtain the new mail for meeting demand.
In present embodiment, the method is after step S207 further include: whether detection current time reaches calling The expectation sending time that the solicited message of email template is included, and determining that current time reaches what solicited message was included It is expected that the mail of generation is sent to the posting address for calling the solicited message of the email template to be included when sending time.
In in present embodiment, by generated comprising fixed form text information and the corresponding parameter of text parameter The mail of value is sent to set posting address, so that user corresponding to posting address can receive with specification text The business mail of format.
It in one embodiment, include examination & approval supervisor's mail address in the solicited message for calling email template, it is described Method is after step S207 further include: judges whether the transmission of mail needs to examine, if mail needs to examine, by the postal Part is sent in supervisor's email address included in the solicited message for calling the email template, if mail does not need to examine, Then send the mail in posting address.
Embodiment 2
Fig. 3 is the structure chart of mail generating means 40 in an embodiment of the present invention.
In some embodiments, the mail generating means 40 are run in electronic equipment.The mail generating means 40 It may include multiple functional modules as composed by program code segments.The journey of each program segment in the mail generating means 40 Sequence code can store in memory, and as performed by least one processor, to execute the function of mail generation.
In the present embodiment, function of the mail generating means 40 according to performed by it can be divided into multiple functions Module.As shown in fig.2, the code building document device 40 that is based on may include the first receiving module 401, template creation mould Block 402 replys module 403, the second receiving module 404, judgment module 405, reminding module 406, mail generation module 407 and postal Part sending module 408.The so-called module of the present invention refers to that one kind performed by least one processor and can be completed The series of computation machine program segment of fixed function, storage is in memory.In some embodiments, the function about each module It will be described in detail in subsequent embodiment.
First receiving module 401 is used to receive the request of creation email template, wherein the creation email template It include fixed form text in request.
In present embodiment, user can propose creation mail by the mail platform management system of the user terminal 2 The request of template, and the mail text information for inputting oneself customization has fixed form to issue as fixed form text The request of the email template of text.In present embodiment, the fixed form text includes mail beginning address and segment identification. For example, the fixed form text of user's input may is that
" distinguished client, you are good!
The xxx that you insure will nearly expire in xxx days, if necessary to continue insurance, please complete continuation of insurance formality as early as possible, thanks!".
The template creation module 402 is used to according to the request creation for creating the email template include the stent The email template of plate text.
In present embodiment, when receiving the request of email template of the sending of user terminal 2, the template creation module 402 call the email template pre-established to generate journey according to the fixed form text for including in the request for creating the email template Sequence is to establish the email template comprising one or more text parameters.
Referring to FIG. 4, the signal for template creation module 402 in present embodiment in an embodiment of the present invention Figure.The template creation module 402 includes reading submodule 4021, replys submodule 4022 and template generation submodule 4023.
The reading submodule 4021 reads the multiple text parameters pre-established.
In present embodiment, multiple text parameters, each text ginseng are pre-established in the background data base of server Variable has an identifier, is that database administrator is pre- for indicating the function and usage and variable meaning of text parameter If setting.In present embodiment, text parameter is the parameter of the alterable adjustment of parameter value of the email template, when user's end When end 2 receives the assignment command based on the text parameter, the parameter value of text parameter can be modified to meet The transformable demand of email text data.
In present embodiment, for established each text parameter, the reading submodule 4021 is generated comprising every The display list is returned to the mail platform management system of user terminal 2 by the display list of the identifier of one text parameter System, and it is shown mail platform management system to the display list.For example, the text parameter pre-established includes vehicle The two kinds of variable such as dangerous variable and non-vehicle insurance variable.In vehicle insurance variable, the identifier of each variable includes but is not limited to Insurer's name, license plate etc..In non-vehicle insurance variable, identifier corresponding with each variable includes but is not limited to insurer's surname Name, name of product, last year premium, last year number of policy commencement of coverage and insurance stop phase etc..
The reply submodule 4022 returns to each text parameter and its corresponding identifier to user terminal 2, So that user issued on the user terminal 2 for showing the text parameter and the identifier parameter choose instruction and Parameter offset commands.
In present embodiment, user is according to the identifier of each text parameter variable, it may be appreciated that each text parameter Corresponding function and usage and variable meaning, so that issuing variable based on identifier chooses instruction.
The template generation submodule 4023 be used to receive the parameter that user inputs on the user terminal 2 choose instruction and Parameter offset commands are chosen according to the parameter and instruct the text parameter for determining user's selection, and will determine Text parameter be automatically inserted into email template indicated by the parameter offset commands corresponding with text parameter Mail text position.
In present embodiment, the template generation submodule 4023 obtains the variable that user issues and chooses instruction, according to institute It states variable and chooses the corresponding each identifier of instruction, text parameter corresponding with wherein each identifier is searched, by institute State the text parameter that text parameter is determined as email template.In present embodiment, for each text of user's selection Parameter can be automatically inserted into the mail text position of email template indicated by parameter offset commands, to generate When e-mail messages, parameter value corresponding to each text parameter is shown in the mail text that the text parameter is inserted into Position.For example, when the identifier of the text parameter of user's selection is insurer's name, license plate and insurance recently stop the phase, and Insurer's name, license plate and insurance recently stop the corresponding text parameter of phase institute be applicantName, Each text parameter is then inserted into according to the parameter offset commands that user issues by vehicleNo and policyEndDate To the specified mail text position of mail text information, the obtained mail text information comprising text parameter be may is that " distinguished [applicantName] client, your vehicle [vehicleNo] will insure in [policyEndDate] to expire ".
This case is chosen according to the parameter and is instructed, and determines the text parameter and every by what is determined of user's selection One text parameter is inserted into mail text position indicated by its corresponding described parameter offset commands, so that email template The data of mail text can flexibly be changed, so that the email template of creation supports complicated data format.
The reply module 403 is the email template allocation template identification number, is wound by the template identification number output Build the response message of the request of the email template.
In present embodiment, for the ease of distinguishing the mail mould of corresponding different fixed form text informations, text parameter Plate, in one email template of every generation, the reply module 403 is that the email template distributes a template identification number.Example Such as, the template identification number includes but is not limited to the serial number and the customized template name of business personnel generated according to time sequencing Deng.In present embodiment, by the template identification number of generation, information is back to and issues the request of creation email template in response User terminal 2, so as to facilitate use the template user's next time after user records the template identification number by user terminal 2 The corresponding email template of mark sends the mail that there is identical services mail to generate demand.
Second receiving module 404 receives the solicited message for calling email template, wherein the calling email template The parameter value of template identification number, text parameter in solicited message including email template.
In present embodiment, user terminal 2 sends the solicited message for calling email template to server 1.Described second connects Receive the solicited message that module 404 receives the calling email template that user terminal 2 is sent.In other embodiments, the calling In the solicited message of email template other than including the template identification number of email template, the parameter value of text parameter, may be used also Time including the mail that posting address, expectation are sent.
The judgment module 405 judges whether the data in the received solicited message for calling email template are legal.
In present embodiment, the judgment module 405 calls the template mark in the solicited message of email template by judgement Whether know number regular data determined in the solicited message for calling email template for whether meeting preset template identification number composition It is legal.When the template identification number in the solicited message for calling email template meets the rule that preset identification number is constituted, determine It calls the data in the solicited message of email template legal, otherwise determines that the data in the solicited message for calling email template do not conform to Method.
The reminding module 406 is used for when determining that the data in the received solicited message for calling email template are illegal Issuing a prompt information reminds user to call the solicited message of the email template wrong.
In present embodiment, when the solicited message of user's calling email template is wrong, the reminding module 406 is sent to 2 prompting message of user terminal is to remind user, such as the prompting message can be " the solicited message for calling email template It is wrong, please retransmit ".
The mail generation module 407 is according to the solicited message for calling email template, to opposite with the template identification number The email template answered is configured, to generate the mail of the parameter value comprising the text parameter.
In present embodiment, according to the corresponding parameter value of text parameter in the solicited message for calling email template, really Determine the parameter value of each text parameter in fixed form text.It will be present in each text ginseng of the text position of email template Variable replacement is the parameter value of text parameter, to obtain the new mail for meeting demand.
In present embodiment, mail sending module 408 is used to detect whether current time to reach calling email template The expectation sending time that solicited message is included, and when determining that current time reaches the expectation transmission that solicited message is included Between when the mail of generation is sent to the posting address for calling the solicited message of the email template to be included.
In in present embodiment, by generated comprising fixed form text information and the corresponding parameter of text parameter The mail of value is sent to set posting address, so that user corresponding to posting address can receive with specification text The business mail of format.
It in one embodiment, include examination & approval supervisor's mail address in the solicited message for calling email template, it is described Mail sending module 408 is also used to: judging whether the transmission of mail needs to examine, if mail needs to examine, by the mail It is sent to and calls in supervisor's email address included in the solicited message of the email template, if mail does not need to examine, It sends the mail in posting address.
Embodiment three
Fig. 5 is the schematic diagram of electronic equipment 6 in an embodiment of the present invention.
The electronic equipment 6 includes memory 61, processor 62 and is stored in the memory 61 and can be described The computer program 63 run on processor 62.The processor 62 realizes that above-mentioned mail is raw when executing the computer program 63 At the step in embodiment of the method, such as step S201~S207 shown in Fig. 2.Alternatively, the processor 62 executes the meter The function of each module/unit in above-mentioned mail generating means embodiment is realized when calculation machine program 63, such as the module 401 in Fig. 3 ~408.
Illustratively, the computer program 63 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 62, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, and described instruction section is used In implementation procedure of the description computer program 63 in the electronic equipment 6.For example, the computer program 63 can be by The first receiving module 401, template creation module 402, reply module 403, the second receiving module 404, judgement being divided into Fig. 2 Module 405, reminding module 406, mail generation module 407 and mail sending module 408, each module concrete function is referring to embodiment Two.
The electronic equipment 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.It will be understood by those skilled in the art that the schematic diagram is only the example of electronic equipment 6, do not constitute to electronic equipment 6 Restriction, may include perhaps combining certain components or different components, such as institute than illustrating more or fewer components Stating electronic equipment 6 can also include input-output equipment, network access equipment, bus etc..
Alleged processor 62 can be central processing module (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor 62 is also possible to any conventional processing Device etc., the processor 62 are the control centres of the electronic equipment 6, utilize various interfaces and the entire electronic equipment of connection 6 various pieces.
The memory 61 can be used for storing the computer program 63 and/or module/unit, and the processor 62 passes through Operation executes the computer program and/or module/unit being stored in the memory 61, and calls and be stored in memory Data in 61 realize the various functions of the meter electronic equipment 6.The memory 61 can mainly include storing program area and deposit Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast Playing function, image player function etc.) etc.;Storage data area can store according to electronic equipment 6 use created data (such as Audio data, phone directory etc.) etc..In addition, memory 61 may include high-speed random access memory, it can also include non-volatile Property memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other Volatile solid-state part.
If the integrated module/unit of the electronic equipment 6 is realized in the form of software function module and as independent Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program At the computer program can be stored in a computer readable storage medium, and the computer program is held by processor When row, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, institute Stating computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..It is described Computer-readable medium may include: any entity or device, recording medium, U that can carry the computer program code Disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs It is bright, the content that the computer-readable medium includes can according in jurisdiction make laws and patent practice requirement into Row increase and decrease appropriate, such as do not include electric load according to legislation and patent practice, computer-readable medium in certain jurisdictions Wave signal and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed electronic equipment and method, Ke Yitong Other modes are crossed to realize.For example, electronic equipment embodiment described above is only schematical, for example, the module Division, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in same treatment module It is that modules physically exist alone, can also be integrated in equal modules with two or more modules.Above-mentioned integrated mould Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other modules or step, and odd number is not excluded for plural number.It is stated in electronic equipment claim Multiple modules or electronic equipment can also be implemented through software or hardware by the same module or electronic equipment.The first, the Second-class word is used to indicate names, and is not indicated any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. a kind of mail generation method, which is characterized in that the described method includes:
The request of creation email template is received, wherein including fixed form text in the request of the creation email template;
Request creation according to the creation email template includes the email template of the fixed form text;
For the email template allocation template identification number, the request that the template identification number output is created into the email template Response message;
Receive the solicited message for calling the email template, wherein it includes described for calling in the solicited message of the email template The parameter value of the template identification number of email template, text parameter;
Judge whether the data in the received solicited message for calling the email template are legal;And
When determining that the data in the solicited message for calling the email template are legal according to the request for calling the email template Information configures email template corresponding with the template identification number, to generate the ginseng for including the text parameter The mail of numerical value.
2. mail generation method as described in claim 1, which is characterized in that the method also includes:
A prompt information, which is issued, when determining that the data in the solicited message for calling the email template are illegal reminds user's tune Solicited message with the email template is wrong.
3. mail generation method as described in claim 1, which is characterized in that the judgement is received to call the email template Solicited message in data whether legal include:
It is true when the template identification number in the solicited message for calling email template meets the rule of preset template identification number composition It is legal with the data in the solicited message of email template to set the tone, and otherwise determination calls the data in the solicited message of email template not It is legal.
4. mail generation method as described in claim 1, which is characterized in that the request according to the creation email template Creation includes that the email template of the fixed form text includes:
The multiple text parameters pre-established are read, wherein each text parameter has an identifier, Mei Yisuo The identifier for stating text parameter is used to indicate the function and usage and variable meaning of text parameter;
Each text parameter and its corresponding identifier are returned to user terminal;And
It receives the parameter that user inputs on the user terminal and chooses instruction and parameter offset commands, become according to the ginseng Amount choose instruct determine user selection the text parameter, and by the text parameter determined be automatically inserted into it is described The mail text position of the email template indicated by the corresponding parameter offset commands of text parameter.
5. mail generation method as claimed in claim 4, which is characterized in that the text parameter pre-established includes vehicle Dangerous variable and non-vehicle insurance variable.
6. mail generation method as described in claim 1, which is characterized in that wrapped in the solicited message for calling email template The time for including posting address, the mail that expectation is sent, the method also includes:
Whether detection current time reaches the expectation sending time for calling the solicited message of the email template to be included, and It determines to be sent to the mail of generation when current time reaches the expectation sending time that the solicited message is included and calls institute State the posting address that the solicited message of email template is included.
7. mail generation method as described in claim 1, which is characterized in that wrapped in the solicited message for calling email template Examination & approval supervisor mail address, posting address are included, the method also includes:
Judge whether the transmission of the mail needs to examine;
If the mail needs to examine, send the mail in supervisor's email address;And
If the mail does not need to examine, send the mail in the posting address.
8. a kind of mail generating means, which is characterized in that described device includes:
First receiving module, for receiving the request of creation email template, wherein including in the request of the creation email template Fixed form text;
Template creation module, for including the postal of the fixed form text according to the request creation of the creation email template Part template;
Module is replied, for being the email template allocation template identification number, by the template identification number output for described in creation The response message of the request of email template;
Second receiving module, for receiving the solicited message for calling the email template, wherein call asking for the email template Seek the parameter value in information including the template identification number of the email template, text parameter;
Judgment module, for judging whether the data in the received solicited message for calling the email template are legal;And
Mail generation module, for when determining that the data in the solicited message for calling the email template are legal according to calling institute The solicited message for stating email template configures email template corresponding with the template identification number, includes institute to generate State the mail of the parameter value of text parameter.
9. a kind of electronic equipment, it is characterised in that: the electronic equipment includes processor, and the processor is for executing memory The mail generation method as described in any one of claim 1-7 is realized when the computer program of middle storage.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program The mail generation method as described in any one of claim 1-7 is realized when being executed by processor.
CN201811574424.3A 2018-12-21 2018-12-21 Mail generation method, device, electronic equipment and computer readable storage medium Pending CN109977379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811574424.3A CN109977379A (en) 2018-12-21 2018-12-21 Mail generation method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811574424.3A CN109977379A (en) 2018-12-21 2018-12-21 Mail generation method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109977379A true CN109977379A (en) 2019-07-05

Family

ID=67076267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811574424.3A Pending CN109977379A (en) 2018-12-21 2018-12-21 Mail generation method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109977379A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474836A (en) * 2019-08-16 2019-11-19 深圳乐信软件技术有限公司 A kind of email template generation method, calculates equipment and medium at device
CN112104544A (en) * 2020-09-08 2020-12-18 紫光云(南京)数字技术有限公司 Method and device for sending dynamic mail based on Freemarker

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601454A (en) * 2015-02-13 2015-05-06 北京京东尚科信息技术有限公司 Method and system for mail processing
CN107733790A (en) * 2017-12-01 2018-02-23 世纪龙信息网络有限责任公司 Mail distribution method, device and server
CN107800613A (en) * 2017-07-27 2018-03-13 平安科技(深圳)有限公司 E-mail sending method, device, storage medium and computer equipment
CN108259553A (en) * 2017-10-09 2018-07-06 平安科技(深圳)有限公司 The sending method and terminal device of business mail

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601454A (en) * 2015-02-13 2015-05-06 北京京东尚科信息技术有限公司 Method and system for mail processing
CN107800613A (en) * 2017-07-27 2018-03-13 平安科技(深圳)有限公司 E-mail sending method, device, storage medium and computer equipment
CN108259553A (en) * 2017-10-09 2018-07-06 平安科技(深圳)有限公司 The sending method and terminal device of business mail
CN107733790A (en) * 2017-12-01 2018-02-23 世纪龙信息网络有限责任公司 Mail distribution method, device and server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474836A (en) * 2019-08-16 2019-11-19 深圳乐信软件技术有限公司 A kind of email template generation method, calculates equipment and medium at device
CN112104544A (en) * 2020-09-08 2020-12-18 紫光云(南京)数字技术有限公司 Method and device for sending dynamic mail based on Freemarker
CN112104544B (en) * 2020-09-08 2022-05-10 紫光云(南京)数字技术有限公司 Method and device for sending dynamic mail based on Freemarker

Similar Documents

Publication Publication Date Title
CN103854168B (en) Isomery flow process is pending focuses on method and processing means
CN108259553A (en) The sending method and terminal device of business mail
CN111953579B (en) Message generation method, system, terminal and storage medium
US20180365601A1 (en) Service reservation method and apparatus
US20140075340A1 (en) Visually indicating a calendar event among different time zones
US8428561B1 (en) Event notification and organization utilizing a communication network
US8676626B1 (en) Event notification and organization utilizing a communication network
CN110688236A (en) Information touch method, system and terminal equipment
CN107562552A (en) A kind of service message generation method and system
CN113011769A (en) Item reservation method and device
CN111581502A (en) Information notification method and device
CN103955746A (en) System and method based on restaurant orders and customer management
CN109977379A (en) Mail generation method, device, electronic equipment and computer readable storage medium
CN101924711B (en) A method, devices and system having out of office based presence
CN101389088A (en) Multimedia message group sending method and group sending request method, multimedia message management platform device
CN112529460A (en) Material scheduling method, scheduling system, electronic device and storage medium
CN114301859A (en) Notification message sending method and device, electronic equipment and medium
CN109976508A (en) Information provider unit
CN113112116A (en) Order distribution method and device and server
CN113762674A (en) Order distribution method and device
CN113434423B (en) Interface testing method and device
CN109150694A (en) Sending method, display methods and the server and mobile terminal of dynamic scene information
CN108921499A (en) A kind of exhibition room finishing workflow method and its system
CN109921985B (en) Mail group sending method, device, server and storage medium
CN114374737A (en) Message pushing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination