CN115499405B - Method and system for custom generation of mail - Google Patents

Method and system for custom generation of mail Download PDF

Info

Publication number
CN115499405B
CN115499405B CN202211116147.8A CN202211116147A CN115499405B CN 115499405 B CN115499405 B CN 115499405B CN 202211116147 A CN202211116147 A CN 202211116147A CN 115499405 B CN115499405 B CN 115499405B
Authority
CN
China
Prior art keywords
mail
sent
template
sending
component
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.)
Active
Application number
CN202211116147.8A
Other languages
Chinese (zh)
Other versions
CN115499405A (en
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.)
Tianyi Digital Life Technology Co Ltd
Original Assignee
Tianyi Digital Life Technology Co 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 Tianyi Digital Life Technology Co Ltd filed Critical Tianyi Digital Life Technology Co Ltd
Priority to CN202211116147.8A priority Critical patent/CN115499405B/en
Publication of CN115499405A publication Critical patent/CN115499405A/en
Application granted granted Critical
Publication of CN115499405B publication Critical patent/CN115499405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for custom generating mails, wherein a mail template text is assembled by dragging an html component, the html component dragged into the text is set with a style and a data source, after the html component dragging and the style and the data source setting of all requirements are completed, a mail template to be transmitted is generated, and finally the mail template to be transmitted is transmitted to an appointed receiver and a sender according to a transmission mode selected by a user, so that the user is not required to have code basic skills, mail contents can be efficiently and accurately generated and transmitted, the expansibility and the flexibility are higher, and the technical problems of low efficiency and low accuracy caused by manually filling the mail contents and high requirements on professionals by using a mode of generating the mails are avoided.

Description

Method and system for custom generation of mail
Technical Field
The invention relates to the technical field of e-mails, in particular to a method and a system for custom generation of mails.
Background
The email service has the characteristics of high transmission speed, various contents and forms, convenient use, low cost, good safety performance and the like, and becomes one of the most common and most extensive communication modes in daily work and life of people. Currently, there are two ways to generate and send emails with data tables and attachments: one is that a user manually inserts a form in the mail text and adds corresponding data and data accessories, and the other is that the user develops a set of function codes for transmitting the data form and the corresponding accessories. The former has low operation efficiency, and the manual data filling is easy to make mistakes, and the latter can be completed by code personnel with a certain foundation, has high requirements on the professionality, and is difficult to popularize and apply. Therefore, the mail content generation method which does not require the user to have code basic skills, can efficiently and accurately generate and send the mail content and has higher expansibility and flexibility is a technical problem to be solved by the technicians in the field.
Disclosure of Invention
The invention provides a method and a system for custom generating mails, which do not require users to have code basic skills, can efficiently and accurately generate and send mail contents, have higher expansibility and flexibility, and avoid the technical problems of low efficiency and low accuracy caused by manually filling the mail contents and high professional requirements in a mode of generating the mails by codes.
In view of this, the first aspect of the present invention provides a method for custom generating mail, including:
Responding to a template creation request of a user, creating a blank mail template in a mail system, wherein the content of the mail template comprises a mail type, a mail title, a recipient, a sender, a mail text and a sending mode, and the sending mode comprises direct sending and timing sending;
Acquiring a target html component dragged to a mail text area by a user from an html component library, wherein the html component library is configured with a text component, a picture component, a video component, a file component and a form component;
acquiring a style and a data source set by a user for a target html component dragged to a mail text area;
judging whether a next drag target html component acts, if so, continuously acquiring a style and a data source set by a user for the target html component dragged to the mail text area, otherwise, judging whether a template generation instruction is detected;
if the template generation instruction is detected, generating a mail template to be sent from the current mail content, and waiting for a user to select a sending mode;
If the sending mode selected by the user is direct sending, directly sending the mail template to be sent to a corresponding receiver and a sender;
If the sending mode selected by the user is timing sending, the mail template to be sent is stored in a background database, and when the timing sending time is reached, the mail template to be sent is called from the background database, and the mail template to be sent is sent to a corresponding receiver and a sender.
Optionally, if the sending mode selected by the user is timing sending, storing the mail template to be sent in a background database, and when the timing sending time is reached, calling the mail template to be sent from the background database, and sending the mail template to be sent to a corresponding receiver and a sender, including:
If the sending mode selected by the user is timing sending, storing the mail template to be sent into a background database;
When the timing sending time is reached, reading mail template data to be sent from a background database;
Rendering the mail template data to be sent by a render;
Compiling the target html component in the mail template data to be sent after rendering by the render to obtain target html component data;
rendering the target html component data;
Judging whether all the target html component data are rendered, if yes, rendering patterns in the mail template data to be sent to obtain a mail template to be sent, otherwise, continuously compiling the target html components in the mail template data to be sent after rendering by a render;
And sending the mail template to be sent to the corresponding addressee and the sender.
Optionally, the method further comprises:
and detecting whether the mail template to be sent fails to be sent, if so, popping up a sending failure prompt message.
Optionally, the target html component is composed of containers, styles, and data sources.
Alternatively, the data sources include two, one for user input or local upload and the other for http request url parameters.
Optionally, the timing transmission mode adopts Quartz to schedule timing tasks.
The second aspect of the invention provides a system for custom generating mails, which comprises a mail configuration visual operation module and a timing task scheduling module;
the mail configuration visualization operation module is used for:
Responding to a template creation request of a user, creating a blank mail template in a mail system, wherein the content of the mail template comprises a mail type, a mail title, a recipient, a sender, a mail text and a sending mode, and the sending mode comprises direct sending and timing sending;
Acquiring a target html component dragged to a mail text area by a user from an html component library, wherein the html component library is configured with a text component, a picture component, a video component, a file component and a form component;
acquiring a style and a data source set by a user for a target html component dragged to a mail text area;
judging whether a next drag target html component acts, if so, continuously acquiring a style and a data source set by a user for the target html component dragged to the mail text area, otherwise, judging whether a template generation instruction is detected;
if the template generation instruction is detected, generating a mail template to be sent from the current mail content, and waiting for a user to select a sending mode;
If the sending mode selected by the user is direct sending, directly sending the mail template to be sent to a corresponding receiver and a sender;
if the sending mode selected by the user is timing sending, triggering a timing task scheduling module, and storing the mail template to be sent into a background database;
And the timing task scheduling module is used for starting timing when the transmission mode selected by the user is timing transmission, and calling a mail template to be transmitted from the background database when the timing transmission time is reached, and transmitting the mail template to be transmitted to the corresponding receiver and the sender.
Optionally, the timing task scheduling module is specifically configured to:
when the transmission mode selected by the user is timing transmission, starting timing;
When the timing sending time is reached, reading mail template data to be sent from a background database;
Rendering the mail template data to be sent by a render;
Compiling the target html component in the mail template data to be sent after rendering by the render to obtain target html component data;
rendering the target html component data;
Judging whether all the target html component data are rendered, if yes, rendering patterns in the mail template data to be sent to obtain a mail template to be sent, otherwise, continuously compiling the target html components in the mail template data to be sent after rendering by a render;
And sending the mail template to be sent to the corresponding addressee and the sender.
The mail configuration visualization operation module is further configured to:
and detecting whether the mail template to be sent fails to be sent, if so, popping up a sending failure prompt message.
Optionally, the target html component is composed of containers, styles, and data sources.
From the above technical solution, the method and system for custom generating mail provided by the present invention have the following advantages:
According to the method for custom generation of the mail, provided by the embodiment of the invention, the text of the mail template is assembled by dragging the html component, the html component dragged into the text is set with the style and the data source, the mail template to be transmitted is generated after all the html components required are dragged and the style and the data source are set, and finally the mail template to be transmitted is transmitted to the appointed receiver and the sender according to the transmission mode selected by the user, so that the user is not required to have basic skills of codes, the mail content can be efficiently and accurately generated and transmitted, the expansibility and the flexibility are higher, and the technical problems of low efficiency and low accuracy caused by manually filling the mail content and high requirements on the specialization by using the mode of generating the mail by codes are avoided.
The principle and the obtained technical effects of the system for custom generating the mail provided by the invention are the same as those of the method for custom generating the mail provided by the invention, and are not repeated here.
Drawings
FIG. 1 is a flow chart of a method for custom generating mail according to an embodiment of the present invention;
FIG. 2 is a processing logic block diagram of a method for custom generating mail according to an embodiment of the present invention;
Fig. 3 is a schematic processing logic diagram of a timing sending manner of a method for generating a mail in a self-defining manner according to an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a system for custom generating mail according to an embodiment of the present invention.
Detailed Description
In order to make the present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For ease of understanding, referring to fig. 1, an embodiment of a method for custom generating mail is provided in the present invention, including:
step 101, responding to a template creation request of a user, creating a blank mail template in a mail system, wherein the content of the mail template comprises a mail type, a mail title, a recipient, a sender, a mail text and a sending mode, and the sending mode comprises direct sending and timing sending.
When a user needs to send a mail, logging in a mail system, clicking a corresponding key to initiate a template creation request, responding to the template creation request of the user by the mail system, creating a blank mail template, wherein the content of the mail template comprises mail types (such as notification types, report types, information types and the like), mail titles, recipients, shovelers, mail texts and sending modes, the sending modes comprise direct sending and timing sending, the direct sending mode can be directly realized by clicking a 'sending' button on a page, and the timing sending mode can be realized by selecting a 'timing sending' option and setting timing sending time. The mail title, the addressee and the part of the content of the copying person can be directly filled by the user, and the addressee and the copying person can also be directly selected from a preset addressee group and a preset copying person group by the user.
Step 102, obtaining a target html component dragged to a mail text area by a user from an html component library, wherein the html component library is configured with a text component, a picture component, a video component, a file component and a table component.
In the embodiment of the invention, the text content of the mail template is assembled by dragging the html component. The html component is an html code with a certain style, and specific style and content can be displayed through browser rendering. The html component library in the embodiment of the invention comprises five types of html components, namely a text component, a picture component, a video component, a file component and a table component. Each html component consists of three parts, container, style and data source, respectively. The container is a place for carrying content, typically a tag in html, such as div, span, form, etc., and the content of the final mail is placed in the container. The style, i.e. a length of css code, is finally embedded in html to modify the style of the component, such as modifying font size, spacing, whether it is centered, etc. The data source, i.e. the specific source of the data of the content in the component, is generally input by the user, or can be obtained from other places, for example, the data source corresponds to a database, the type of the data source is selected as the database when the data source is set, and then the address and the parameters of the database are selected.
The text component is composed of a section of html code, the text-carried container is generally used as a container for carrying the whole content by < p > </p > or div in the html code, the text style is a style code of a section of css, the style code has a custom style, and a user can modify the value of the style, such as the word size of the text, the color of the text and the like. The data sources of the text can have two data sources, one is that after a user drags a target text component, user input is carried out in the setting of the text component, namely the text component provides html style, and specific characters are input by the user; another is the way the url parameters are requested by http. If the first data source mode is adopted, the text is directly rendered into the html, and if the second data source mode is adopted, the render makes an http request, a remote response result is obtained, and the text in the response result is rendered into the text component. The text component can then add the acquisition mode of the data source in the render, which has more expansion.
The containers of the picture component typically correspond to img tags in html, or icon in some front-end templates, etc. The style may be the size, transparency, degree of rotation, etc. of the picture. The data source can be locally input or uploaded from the local of the user, or is an http picture url, the picture is obtained in a render of the background according to the type of the data source, and the picture is rendered in an html tag corresponding to the container and displayed in a specified style.
The video component is similar to the picture component except that the container label of the video component is video, and the style corresponds to the size of the player. Data sources are also divided into local video and remote video. The local video corresponds to a local video file, the html video tag can support a format, and other video sources can be various remote video sources, such as the addresses of live video sources. After the content of the video component is set in the mail template, the render is responsible for acquiring data according to the source of the data and then rendering the data in the container when the data is sent, so that the video can be normally seen after the mail is received.
The file component can be used for forming an attachment part, the container can be a file label in html or an attachment function of the mail, sources are a local file and a remote file, a render encounters the file component when rendering the mail template, rendering is performed according to the data opening source, if the file is the local file, binary data of the local file in the mail template is directly read for display, if the file is a file corresponding to remote url, the render requests the url file through http, the file is successfully downloaded and then placed in the container, or a direct display link is not downloaded, and a user who receives the mail clicks the link to download the file.
The container of the form component corresponds to a table label in html, and the style can determine how the form is specifically displayed, for example, whether the form has a border, the size of the border, the thickness of the border, and whether the text interval is middle. The source of the data can be the user configuring the mail template to fill in, or the request link corresponding to the http url can be selected, and the result returned by the link is the specific data of the form.
The data acquisition of the html component is defined by the render corresponding to the component how to execute and how to map, if a data source mode needs to be added to the component, only the parsing mode of the corresponding data source needs to be added to the render component of the background corresponding to the component.
And step 103, acquiring a style and a data source set by a user for the target html component dragged to the mail text region.
After the user drags the target html component to the mail text area, the style and the data source of the target html component are configured, and the mail system processes according to the style and the data source configuration result of the user.
And 104, judging whether a next dragging target html component acts, if so, continuously acquiring a style and a data source set by a user for the target html component dragged to the mail text area, otherwise, judging whether a template generation instruction is detected.
It should be noted that, in the state of creating the mail template, the mail system continuously detects whether the action of the drag target html component occurs, and under the condition that the action of the drag target html component occurs, the style and the data source set by the user for the target html component dragged to the text area of the mail are continuously acquired until the template generating instruction is detected.
Step 105, if the template generation instruction is detected, generating a mail template to be sent from the current mail content, and waiting for the user to select a sending mode.
And 106, if the sending mode selected by the user is direct sending, directly sending the mail template to be sent to the corresponding addressee and the sender.
And 107, if the sending mode selected by the user is timing sending, storing the mail template to be sent in a background database, calling the mail template to be sent from the background database when the timing sending time is reached, and sending the mail template to be sent to the corresponding addressee and the sender.
After detecting the template generation instruction sent by the user, the mail template to be transmitted is generated according to the currently selected mail title, the currently selected recipient, the currently selected copy person and the currently selected mail text content, and the user selects the transmission mode. If the user selects to send directly (i.e. the user clicks the send button in the mail interface directly), the mail system will send the current mail template to be sent directly to the corresponding recipient and sender. If the sending mode selected by the user is timing sending (namely, the user selects a timing sending option in a mail interface and sets timing sending time), the mail template to be sent is stored in a background database, and when the timing sending time is reached, the mail template to be sent is called from the background database, and the mail template to be sent is sent to a corresponding receiver and a sender.
According to the method for custom generation of the mail, provided by the embodiment of the invention, the text of the mail template is assembled by dragging the html component, the html component dragged into the text is set with the style and the data source, the mail template to be transmitted is generated after all the html components required are dragged and the style and the data source are set, and finally the mail template to be transmitted is transmitted to the appointed receiver and the sender according to the transmission mode selected by the user, so that the user is not required to have basic skills of codes, the mail content can be efficiently and accurately generated and transmitted, the expansibility and the flexibility are higher, and the technical problems of low efficiency and low accuracy caused by manually filling the mail content and high requirements on the specialization by using the mode of generating the mail by codes are avoided.
In one embodiment, a timed task scheduling mode is adopted to process a mail sending mode of timed sending, specifically, after the sending mode selected by a user is timed sending, a mail system stores a mail template to be sent in a background database, as shown in fig. 3, when the timed sending time is reached, mail template data to be sent is read from the background database, render is carried out on the mail template data to be sent, a target html component in the mail template data to be sent after render is compiled (namely, data acquisition is carried out according to a data source of the component to obtain target data, the target data is displayed in the component, such as an image component, the data source is http url, then parameters are picture names, the picture names are combined together to be an http address of a complete picture, then the template of the component is < image size=1 url= 'xx' >, the target html component data is obtained, the target html component data is compiled (namely, the picture address is replaced into the template of the component), whether all target html component data are required to be sent is judged, if the target html component is completely rendered, otherwise, the data to be sent is continuously rendered, and if the target html component is completely sent is compiled, the data to be sent is continuously, and if the target html component is required to be sent is rendered, the mail data is continuously sent.
In the embodiment of the invention, the Quartz is selected for timing task scheduling, and can meet more complex scheduling requirements. The core class of the Quartz design includes Scheduler, job and trigger. The Job is responsible for defining tasks to be executed, the trigger is responsible for setting a scheduling policy, and the Scheduler assembles the tasks and triggers the tasks to start executing. And (5) analyzing time by using a trigger to trigger mail assembly and sending every time a timing task is added.
In one embodiment, following step 106 and step 107, the following steps may be further included:
And step 108, detecting whether the mail template to be sent fails to be sent, if so, popping up the sending failure prompt message.
If the mail fails to be sent due to an error in the sending process, the sending failure prompt message is popped up, so that the user can resend the mail by manually clicking the sending button, and the condition of missing sending of the mail is avoided.
The method for custom generating the mail provided by the invention can customize the mail template, so that the mail template is not single any more, has diversity, can be more flexible and simple in use, and only needs to drag the html component, the configuration style and the data source.
For easy understanding, referring to fig. 4, the present invention provides an embodiment of a system for custom generating mail, including a mail configuration visualization operation module and a timing task scheduling module;
the mail configuration visualization operation module is used for:
Responding to a template creation request of a user, creating a blank mail template in a mail system, wherein the content of the mail template comprises a mail type, a mail title, a recipient, a sender, a mail text and a sending mode, and the sending mode comprises direct sending and timing sending;
Acquiring a target html component dragged to a mail text area by a user from an html component library, wherein the html component library is configured with a text component, a picture component, a video component, a file component and a form component;
acquiring a style and a data source set by a user for a target html component dragged to a mail text area;
judging whether a next drag target html component acts, if so, continuously acquiring a style and a data source set by a user for the target html component dragged to the mail text area, otherwise, judging whether a template generation instruction is detected;
if the template generation instruction is detected, generating a mail template to be sent from the current mail content, and waiting for a user to select a sending mode;
If the sending mode selected by the user is direct sending, directly sending the mail template to be sent to a corresponding receiver and a sender;
if the sending mode selected by the user is timing sending, triggering a timing task scheduling module, and storing the mail template to be sent into a background database;
And the timing task scheduling module is used for starting timing when the transmission mode selected by the user is timing transmission, and calling a mail template to be transmitted from the background database when the timing transmission time is reached, and transmitting the mail template to be transmitted to the corresponding receiver and the sender.
The timing task scheduling module is specifically used for:
when the transmission mode selected by the user is timing transmission, starting timing;
When the timing sending time is reached, reading mail template data to be sent from a background database;
Rendering the mail template data to be sent by a render;
Compiling the target html component in the mail template data to be sent after rendering by the render to obtain target html component data;
rendering the target html component data;
Judging whether all the target html component data are rendered, if yes, rendering patterns in the mail template data to be sent to obtain a mail template to be sent, otherwise, continuously compiling the target html components in the mail template data to be sent after rendering by a render;
And sending the mail template to be sent to the corresponding addressee and the sender.
The mail configuration visualization operation module is further configured to:
and detecting whether the mail template to be sent fails to be sent, if so, popping up a sending failure prompt message.
The target html component consists of a container, a style, and a data source.
The data sources include two types, one for user input or local upload and the other for http request url parameters.
The timing transmission mode adopts Quartz to schedule timing tasks.
The system for custom generating the mail provided by the embodiment of the invention assembles the text of the mail template by dragging the html component, sets the style and the data source of the html component dragged into the text, generates the mail template to be transmitted after completing the dragging of the html component and the setting of the style and the data source of the html component required by all the users, and finally transmits the mail template to be transmitted to the appointed receiver and the sender according to the transmission mode selected by the users, thereby not only having the code basic skills of the users, but also being capable of efficiently and accurately generating and transmitting the mail content, having higher expansibility and flexibility, and avoiding the technical problems of low efficiency and low accuracy caused by manually filling the mail content and high professional requirements by utilizing the mode of generating the mail by codes.
The method for custom generating the mail in the foregoing method embodiment of custom generating the mail can obtain the same technical effects as the foregoing method embodiment of custom generating the mail, and the principle is the same as the foregoing method for custom generating the mail in the foregoing embodiment, and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for custom generating mail, comprising:
Responding to a template creation request of a user, creating a blank mail template in a mail system, wherein the content of the mail template comprises a mail type, a mail title, a recipient, a sender, a mail text and a sending mode, and the sending mode comprises direct sending and timing sending;
Acquiring a target html component dragged to a mail text area by a user from an html component library, wherein the html component library is configured with a text component, a picture component, a video component, a file component and a form component;
acquiring a style and a data source set by a user for a target html component dragged to a mail text area;
judging whether a next drag target html component acts, if so, continuously acquiring a style and a data source set by a user for the target html component dragged to the mail text area, otherwise, judging whether a template generation instruction is detected;
if the template generation instruction is detected, generating a mail template to be sent from the current mail content, and waiting for a user to select a sending mode;
If the sending mode selected by the user is direct sending, directly sending the mail template to be sent to a corresponding receiver and a sender;
If the sending mode selected by the user is timing sending, storing the mail template to be sent into a background database, and when the timing sending time is reached, calling the mail template to be sent from the background database, and sending the mail template to be sent to a corresponding receiver and a sender, wherein the method comprises the following steps:
If the sending mode selected by the user is timing sending, storing the mail template to be sent into a background database;
When the timing sending time is reached, reading mail template data to be sent from a background database;
Rendering the mail template data to be sent by a render;
Compiling the target html component in the mail template data to be sent after rendering by the render to obtain target html component data;
rendering the target html component data;
Judging whether all the target html component data are rendered, if yes, rendering patterns in the mail template data to be sent to obtain a mail template to be sent, otherwise, continuously compiling the target html components in the mail template data to be sent after rendering by a render;
And sending the mail template to be sent to the corresponding addressee and the sender.
2. The method for custom mail generation of claim 1, further comprising:
and detecting whether the mail template to be sent fails to be sent, if so, popping up a sending failure prompt message.
3. The method of custom mail generation of claim 1, wherein the target html component is comprised of a container, a style, and a data source.
4. A method of custom mail creation according to claim 3, wherein the sources of data include two, one for user input or local upload and the other for http request url parameters.
5. The method for custom mail generation according to claim 1, wherein the timing transmission mode uses quantiz for timing task scheduling.
6. The system for custom generating the mail is characterized by comprising a mail configuration visualization operation module and a timing task scheduling module;
the mail configuration visualization operation module is used for:
Responding to a template creation request of a user, creating a blank mail template in a mail system, wherein the content of the mail template comprises a mail type, a mail title, a recipient, a sender, a mail text and a sending mode, and the sending mode comprises direct sending and timing sending;
Acquiring a target html component dragged to a mail text area by a user from an html component library, wherein the html component library is configured with a text component, a picture component, a video component, a file component and a form component;
acquiring a style and a data source set by a user for a target html component dragged to a mail text area;
judging whether a next drag target html component acts, if so, continuously acquiring a style and a data source set by a user for the target html component dragged to the mail text area, otherwise, judging whether a template generation instruction is detected;
if the template generation instruction is detected, generating a mail template to be sent from the current mail content, and waiting for a user to select a sending mode;
If the sending mode selected by the user is direct sending, directly sending the mail template to be sent to a corresponding receiver and a sender;
if the sending mode selected by the user is timing sending, triggering a timing task scheduling module, and storing the mail template to be sent into a background database;
the timing task scheduling module is used for starting timing when the transmission mode selected by the user is timing transmission, and calling a mail template to be transmitted from a background database when the timing transmission time is reached, and transmitting the mail template to be transmitted to a corresponding receiver and a sender; the method is particularly used for:
when the transmission mode selected by the user is timing transmission, starting timing;
When the timing sending time is reached, reading mail template data to be sent from a background database;
Rendering the mail template data to be sent by a render;
Compiling the target html component in the mail template data to be sent after rendering by the render to obtain target html component data;
rendering the target html component data;
Judging whether all the target html component data are rendered, if yes, rendering patterns in the mail template data to be sent to obtain a mail template to be sent, otherwise, continuously compiling the target html components in the mail template data to be sent after rendering by a render;
And sending the mail template to be sent to the corresponding addressee and the sender.
7. The custom mail generating system of claim 6, wherein the mail configuration visualization operations module is further configured to:
and detecting whether the mail template to be sent fails to be sent, if so, popping up a sending failure prompt message.
8. The custom mail generating system of claim 6, wherein the target html component is comprised of a container, a style, and a data source.
CN202211116147.8A 2022-09-14 2022-09-14 Method and system for custom generation of mail Active CN115499405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211116147.8A CN115499405B (en) 2022-09-14 2022-09-14 Method and system for custom generation of mail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211116147.8A CN115499405B (en) 2022-09-14 2022-09-14 Method and system for custom generation of mail

Publications (2)

Publication Number Publication Date
CN115499405A CN115499405A (en) 2022-12-20
CN115499405B true CN115499405B (en) 2024-04-30

Family

ID=84469422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211116147.8A Active CN115499405B (en) 2022-09-14 2022-09-14 Method and system for custom generation of mail

Country Status (1)

Country Link
CN (1) CN115499405B (en)

Citations (4)

* 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
CN111311189A (en) * 2020-02-24 2020-06-19 山东爱城市网信息技术有限公司 Template mail sending method based on http
WO2021093673A1 (en) * 2019-11-12 2021-05-20 深圳前海微众银行股份有限公司 E-mail sending method, apparatus and device, and computer-readable storage medium
CN114049101A (en) * 2022-01-11 2022-02-15 深圳佑驾创新科技有限公司 E-mail sending method, e-mail receiving and replying method and e-mail assistant

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8108763B2 (en) * 2007-01-19 2012-01-31 Constant Contact, Inc. Visual editor for electronic mail
US10650093B2 (en) * 2016-09-15 2020-05-12 Oracle International Corporation Data structure processing for actionable notifications

Patent Citations (4)

* 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
WO2021093673A1 (en) * 2019-11-12 2021-05-20 深圳前海微众银行股份有限公司 E-mail sending method, apparatus and device, and computer-readable storage medium
CN111311189A (en) * 2020-02-24 2020-06-19 山东爱城市网信息技术有限公司 Template mail sending method based on http
CN114049101A (en) * 2022-01-11 2022-02-15 深圳佑驾创新科技有限公司 E-mail sending method, e-mail receiving and replying method and e-mail assistant

Also Published As

Publication number Publication date
CN115499405A (en) 2022-12-20

Similar Documents

Publication Publication Date Title
US5555346A (en) Event-driven rule-based messaging system
US9716680B2 (en) Expandable graphical icon for response to electronic text transmission
US9077672B2 (en) Enhancement of e-mail client user interfaces and e-mail message formats
TWI485612B (en) Extensible and application-adaptable toolbar for web services
US20100070877A1 (en) Seamless conversion of ordinary email data into calendar data
US8099465B2 (en) Method and system for preparing and replying to multi-party e-mails
KR101724777B1 (en) Flexible font
US20150143258A1 (en) Email and task management services and user interface
JP2004151893A (en) Coordinated information generation device and program
US20140082521A1 (en) Email and task management services and user interface
US20170134332A1 (en) Reply to most recent message
US7669138B2 (en) Interacting with a computer-based management system
CN106104594A (en) Carry out standardizing to message pattern and keep being intended to simultaneously
US20070002365A1 (en) Tools for distributed printing of documents
US20140129637A1 (en) Methods and System for Sharing Gadgets Between Users
US20080123973A1 (en) Executing functions using image code
US8732661B2 (en) User experience customization framework
CN115499405B (en) Method and system for custom generation of mail
US10263921B2 (en) Method and device for composing electronic mail messages starting from existing messages in an electronic mail program
US10802683B1 (en) Method, system and computer program product for changing avatars in a communication application display
WO2024078261A1 (en) Message sending method and apparatus, and electronic device and storage medium
US11853693B2 (en) Creating rich communication services (RCS) message templates with graphical build and concurrent representative display
US20050039028A1 (en) E-mail security system
US11709990B1 (en) System and method for creating emails containing complex graphics and custom or non-standard web fonts that ensures they will render consistently across virtually all operating systems, devices, and email clients
US20220158962A1 (en) Method for Providing an Email User Experience By Contacts Instead of Folders

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
GR01 Patent grant
GR01 Patent grant