CN109104360A - E-mail sending method, system, computer equipment and storage medium - Google Patents

E-mail sending method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN109104360A
CN109104360A CN201811093263.6A CN201811093263A CN109104360A CN 109104360 A CN109104360 A CN 109104360A CN 201811093263 A CN201811093263 A CN 201811093263A CN 109104360 A CN109104360 A CN 109104360A
Authority
CN
China
Prior art keywords
mail
template
user
service end
client
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.)
Granted
Application number
CN201811093263.6A
Other languages
Chinese (zh)
Other versions
CN109104360B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811093263.6A priority Critical patent/CN109104360B/en
Publication of CN109104360A publication Critical patent/CN109104360A/en
Application granted granted Critical
Publication of CN109104360B publication Critical patent/CN109104360B/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/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Landscapes

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

Abstract

The invention discloses a kind of e-mail sending methods, system, computer equipment and storage medium, the described method includes: mail service end receives user in the email template of mail management platform configuration, and email template is stored to memory space, if client receives the request for sending E-mail of user, interface then, which is obtained, using the template that mail service end provides sends template acquisition request to mail service end, email template is sent to client by mail service end, the Mail Contents for including in the email template and request for sending E-mail that client is selected according to user, generate mail to be sent, it recalls the mail transmission interface that the mail service end provides and sends mail to be sent.The embodiment of the invention provides unified mail service ends, realize the business e-mail transmitting function of client, without individually developing the mail function of client in each client, save human cost, improve the development efficiency of the mail function of client.

Description

E-mail sending method, system, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of e-mail sending method, system, computer equipment and deposit Storage media.
Background technique
In Internet-related application item, it is often necessary to carry out pushing away for business mail according to the business feature of itself It send, with the multiplicity that becomes increasingly abundant of application item in network, e-mail transmitting function has become the common function of each application item, The business mail of each application item has respective business feature, and different business functions needs to send different mails.
Currently, most of application items all have a set of mailing system, for being directed to the mail of own service customizing functions It is pushed and is managed, although the mail in each application item has stronger customization, also with the similitude of height, weight The similar business mail of multiple development function needs to consume a large amount of human resources, meanwhile, become in the information of business mail When dynamic, need developer to safeguard the logical code of mailing system, modify, lead to current email template information Cause the maintenance efficiency of mailing system not high.
Summary of the invention
The embodiment of the present invention provides a kind of e-mail sending method, system, computer equipment and storage medium, to solve to apply The exploitation of the mail function of project and the low problem of maintenance efficiency.
A kind of e-mail sending method, comprising:
Mail service end receives the user information that user inputs in mail management platform, and is institute according to the user information The memory space mark that user creates memory space and the memory space is stated, by the user information and the memory space mark Know corresponding storage and arrives preset customer data base;
The mail service end receives the user in the email template of the mail management platform configuration, and by the postal Part template is stored to the memory space;
If client receives the request for sending E-mail of the user, logged according to the user in the client The user information inquires the memory space mark of the user in the preset customer data base;
The client is identified according to the memory space, using the mail service end provide template obtain interface to The mail service end sends template acquisition request;
It is empty to obtain storage corresponding with memory space mark according to the template acquisition request for the mail service end Between in email template, and the email template is sent to the client, so that the user selects;
The email template that the client selects the user is as target template;
The Mail Contents for including in the request for sending E-mail are filled up in the target template by the client, are generated Mail to be sent;
The mail transmission interface that mail service end described in the client call provides is sent by the mail service end The mail to be sent.
A kind of mail transmission system, comprising: mail service end and client, wherein the mail service end and the visitor Pass through network connection between the end of family;
The mail service end includes:
Space creation module, the user information inputted for receiving user in mail management platform, and according to the user Information is the memory space mark that the user creates memory space and the memory space, and the user information is deposited with described It stores up the corresponding storage of space identification and arrives preset customer data base;
Template configuration module, for receiving the user in the email template of the mail management platform configuration, and by institute Email template storage is stated to the memory space;
Template sending module, for obtaining storage corresponding with memory space mark according to the template acquisition request Email template in space, and the email template is sent to the client, so that the user selects;
Institute's client includes:
Enquiry module is identified, if the request for sending E-mail for receiving the user, according to the user described The user information that client logs in inquires the memory space mark of the user in the preset customer data base;
Request sending module is obtained for being identified according to the memory space using the template that the mail service end provides Interface is taken to send template acquisition request to the mail service end;
Template chooses module, and the email template for selecting the user is as target template;
Mail generation module, for the Mail Contents for including in the request for sending E-mail to be filled up to the target template In, generate mail to be sent;
Mail sending module, the mail transmission interface for calling the mail service end to provide, is taken by the mail Business end sends the mail to be sent.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize mail in above-mentioned e-mail sending method when executing the computer program The step of server-side or client executing.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program realizes in above-mentioned e-mail sending method the step of mail service end or client executing when being executed by processor.
Above-mentioned e-mail sending method, system, computer equipment and storage medium pass through the basis in mail service end in advance The business tine of each application item itself configures email template in client, if the mail transmission that client receives user is asked It asks, the template that client need to only be provided by unified mail service end obtains interface, it will be able to corresponding email template is called, And Mail Contents to be sent are filled up in email template and generate mail to be sent, the mail of mail service end offer is provided Transmission interface sends mail to be sent, so that the business e-mail transmitting function of application item in client is realized, without each The mail function of independent development and application project, saving human cost improve the exploitation of the mail function of client again in client Efficiency, and when the format of business mail or content need to adjust, it can be flat by the mail management at mail service end It modifies in platform to email template, allows users to neatly determine the email template of the application item in client System is realized to the maintenance of the business mail of application item, improves the maintenance efficiency of the mail function of client.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of e-mail sending method in one embodiment of the invention;
Fig. 2 is a flow chart of e-mail sending method in one embodiment of the invention;
Fig. 3 is a specific flow chart of step S20 in Fig. 2;
Fig. 4 is a specific flow chart of step S50 in Fig. 2;
Fig. 5 is that mail service end sends the detailed process for recommending template in e-mail sending method in one embodiment of the invention Figure;
Fig. 6 is a specific flow chart of step S80 in Fig. 2;
Fig. 7 is a functional block diagram of mail transmission system in one embodiment of the invention;
Fig. 8 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
E-mail sending method provided by the present application can be applicable in the application environment such as Fig. 1, which includes mail Server-side and client, wherein be attached between mail service end and client by network, client is according to the postal of user Part sends request, obtains interface using the template that mail service end provides and sends template acquisition request, mail service to server-side Email template is fed back to client according to template acquisition request by end, and client generates pending according to the email template that user selects The mail transmission interface for sending mail, and mail service end being called to provide sends mail to be sent.Client specifically can with but it is unlimited Then various personal computers, laptop, smart phone, tablet computer and portable wearable device, mail service end It can specifically be realized with the server cluster that independent server or multiple servers form.Postal provided in an embodiment of the present invention Part sending method depends on mail service end and the common cooperation of client is completed.
In one embodiment, Fig. 2 shows a flow charts of e-mail sending method in the present embodiment, as shown in Fig. 2, the mail Sending method includes step S10 to step S80, and details are as follows:
S10: mail service end receives the user information that user inputs in mail management platform, and is to use according to user information Family creates the memory space mark of memory space and memory space, user information storage corresponding with memory space mark is arrived default Customer data base.
In the present embodiment, mail service end is the equipment for mail transmission/reception management, and mail service end can specifically be used The server cluster of independent server or multiple servers composition realizes that mail management platform is that mail service end provides use In the subscriber administration interface of management email template configuration, which specifically can be web interface, and user's input should The corresponding IP address of subscriber administration interface can enter mail management platform, allow users on mail management platform to postal Part template such as is configured or is managed at the operation, and preset customer data base is the number that mail service end is used to store user information According to library.
Specifically, mail service end receives the user information that user inputs in mail management platform, which includes But be not limited to user name, user password, user department and subscriber mailbox etc., and be use in mail service end according to user information Family creates the memory space mark of corresponding memory space and memory space, by user information storage corresponding with memory space mark To preset customer data base, wherein memory space mark is the identification information of memory space, is capable of unique identification user's Memory space.
S20: mail service end receives user in the email template of mail management platform configuration, and email template storage is arrived Memory space.
Specifically, user logs in mail management platform using user name and user password, carries out in mail management platform The configuration of email template, the email template can be plain text email template, be also possible to Webpage e-mail template, or Customized email template etc., specific email template user can configure according to the demand of practical business, not do herein Limitation.
For user after the email template that mail management platform configuration needs to customize well, mail management platform will be configured Email template is uploaded to mail service end, and mail service end obtains the memory space mark of the user according to user information, and will Configured email template storage identifies in corresponding memory space to memory space.
S30: if client receives the request for sending E-mail of user, believed according to user in the user that client logs in Breath inquires the memory space mark of user in preset customer data base.
Specifically, it is various personal computers that client, which specifically can be, but not limited to, laptop, smart phone, is put down Plate computer and portable wearable device, include one or more application project in client, which is to run on visitor The software project at family end, in the use process of the application item of user in the client, if according to current operation flow needs When using sending mail function, then user send based on Mail Contents to be sent the operation of mail, and mail transmission is asked It asks and submits to client, the user information that client detection user fills in when logging in client, and according to user information pre- If customer data base in corresponding with the user information memory space of inquiry identify.
S40: client is identified according to memory space, obtains interface to mail service using the template that mail service end provides End sends template acquisition request.
Specifically, it is API (the Application Programming that mail service end provides that template, which obtains interface, Interface, application programming interface) interface, it is that mail service end for client provides calling mail that template, which obtains interface, The interface of template, client generate template acquisition request pair according to the calling rule that the template that mail service end provides obtains interface Email template is called, and may be implemented in the application item of client using the data information stored in mail service end.
Further, client needs to identify memory space in write-in template acquisition request, uses template acquisition request Interface is obtained to mail service end request email template by the template that mail service end provides, and template obtains the tune of interface It can be specifically configured according to the needs of practical application with rule, for example, the format of template acquisition request can be with are as follows: Https: //api.example.com/template/get/bucket, wherein " api.example.com " is mailbox service The exclusive domain name at end, parameter template are the directory informations for storing the file of all memory spaces, and parameter bucket is storage Space identification, mail service end is to parameter
Bucket carry out URL (Uniform Resource Locator, uniform resource locator) coded treatment, obtain with Memory space identifies specific store path of the file of corresponding memory space in mail service end, to use get order The email template in the memory space is obtained in mail service end.
S50: mail service end obtains the postal identified in corresponding memory space with memory space according to template acquisition request Part template, and email template is sent to client, so that user selects.
Specifically, mail service end parses template acquisition request, obtains storage corresponding with memory space mark Specific store path of the file in space in mail service end obtains the postal identified in corresponding memory space with memory space Part template, and the email template that will acquire is packaged into the text file of key-value pair form, passes through HTTP (HyperText Transfer Protocol, hypertext transfer protocol) agreement is sent to client.
Wherein, the text file of key-value pair form is the data interchange format of lightweight, is different inter-system data exchanges Effective carrier, the text file of key-value pair form includes but is not limited to JSON (JavaScript Object Notation, JS Object numbered musical notation) file and XML (Xtensible Markup Language, extensible markup language) file etc..
It should be noted that JSON file can be conveniently generated and be resolved, effectively mention independent of operating system Network transmission efficiency is risen, can be used as preferably.
Client parses the text file for the key-value pair form that mail service end is sent, and obtains email template output To the interactive interface of client, so that user selects.
S60: the email template that client selects user is as target template.
Specifically, client lists the title of email template in interactive interface, if user needs further to understand postal The particular content of part template can check the particular content of email template by double-clicking the title of email template, and user is according to visitor Email template shown in the interactive interface at family end is selected, and the email template chosen is submitted to client, client is then The email template that user is selected is as target template, for example, clicking the title for choosing email template and clicking confirming button The selected of email template may be implemented, but it is not limited to this, the specific selection mode of email template can according to actual needs into Row setting.
S70: the Mail Contents for including in request for sending E-mail are filled up in target template by client, generate postal to be sent Part.
Specifically, client does Mail Contents filling processing according to the configured format in target template, and mail is sent out The corresponding business datum of Mail Contents for including in request is sent to be added in the corresponding position of target template, dynamic post-processing object mould Plate generates mail to be sent.
Further, the specific steps of dynamic post-processing object template include:
According to the user information logged in active client, it is corresponding that user information is obtained from preset customer data base The email address of subscriber mailbox is as sender, or using the email address of preset public mailbox as sender, wherein pre- If public mailbox be the transmitting-receiving service that application item in the client is preset for business mail mailbox.
According to preset business processing flow, the treatment people of current business mail downstream node is determined, and The email address of the treatment people is obtained in preset address book as recipient, wherein preset business processing flow is visitor A set of business processing flow that application item in the end of family is correspondingly arranged according to the business processing content of itself, the business processing stream Journey includes the treatment people of each business all flow nodes and each flow nodes, and preset address book is the work of company The email address of personnel and client for communication.
The corresponding business datum of the Mail Contents for including in request for sending E-mail is filled up in the text of target template, it is raw At mail to be sent.
It is understood that user only needs to configure email template at mail service end, user can be in visitor Corresponding email template is obtained according to business demand in the end of family, generates different business mails, realizes email template different The multiplexing of application item reduces the workload of developer.
S80: the mail transmission interface that client call mail service end provides sends postal to be sent by mail service end Part.
Specifically, mail transmission interface is another api interface that mail service end provides, and mail interface is mail service end The calling interface for sending mail is provided for client, answering in client may be implemented in the client call mail transmission interface With the e-mail transmitting function used in mail service end in project, mail service end can specifically pass through SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer protocol), POP (Post Office Protocol, electronic post office's agreement) or The secure transfer protocols such as person IMAP (Internet Message Access Protocol, internet mail application protocol) are sent Mail to be sent.
In the present embodiment, by advance in mail service end according to the business of application item itself each in client Content configures email template, if client receives the request for sending E-mail of user, each client need to only pass through unified postal The template that part server-side provides obtains interface, it will be able to call corresponding email template, and Mail Contents to be sent are filled in Mail to be sent is generated into email template, the mail transmission interface for recalling the offer of mail service end sends mail to be sent, To realize the business e-mail transmitting function of application item in client, without individually developing client again in each client Mail function, save human cost, improve the development efficiency of the mail function of client, and in the format of business mail or When person's content needs to adjust, can by modifying in the mail management platform at mail service end to email template so that User can the email template neatly to the application item in client be customized, realize to the business mail of client Maintenance, improves the maintenance efficiency of the mail function of client.
In one embodiment, the present embodiment provides receive user in mail to the mail service end mentioned in step S20 The email template of platform configuration is managed, and the concrete methods of realizing of email template storage to memory space is described in detail.
Referring to Fig. 3, Fig. 3 shows a specific flow chart of step S20, details are as follows:
S201: mail service end inputs user in mail management platform according to the user information in customer data base User information is verified, and check results are obtained.
Specifically, mail service end carries out school in the user information that the login interface of mail management platform inputs to user It tests, using the user information compared with user information all in preset database carries out traversal, if preset user data There are the user informations in library, then it represents that check results are that verification passes through, and user, which has permission, logs in the progress postal of mail management platform The configuration of part template, otherwise, if the user information is not present in preset customer data base, then it represents that check results are that verification is lost It loses, exports the prompt information of user information mistake.
S202: if check results are that verification passes through, mail service end is provided a user default by mail management platform Template basic configuration information so that user according to preset template basic configuration information configure email template.
Specifically, preset template configuration information is some basic modules preset for configuring email template, should Basic module includes but is not limited to the trade mark of company, the theme of business mail, greeting and mail signature.If check results are school Test and pass through, user possesses permission and email template is managed for configuration in mail management platform, for example, can increase newly, modify or Person deletes preset email template etc., then it is basic by mail management platform to provide a user preset template for mail server Configuration information is selected to user, so that user configures email template according to preset template basic configuration information, to be used In the email template for the fixed format for sending business mail.
Further, mail service end can also confirm the user department of the user according to user information, so as to according to The service attribute of family department, push are suitble to the basic module of the department user.
S203: mail service end receives the email template of user configuration, and email template storage is arrived and user information pair The memory space answered.
Specifically, the good email template of user configuration is uploaded to mail service end, mail service end by mail management platform Email template storage is arrived memory space corresponding with user information by the email template for receiving user configuration, and empty for the storage Between in each email template distribute corresponding template identification number, which can be in the unique identification memory space The email template of email template, different memory spaces can be identical.
In the present embodiment, school is carried out in the user information that mail management platform inputs to user by mail service end It tests, the safety of enhancing email template storage, if check results are that verification passes through, mail service end passes through mail management platform Preset template basic configuration information is provided a user, so that user configures mail mould according to preset template basic configuration information Plate improves the allocative efficiency of email template, finally receives the email template of user configuration, and email template storage is believed to user Corresponding memory space is ceased, so as to carry out flexibly matching for email template according to the service attribute of application item in client It sets, obtains the email template for being suitble to application item in client, and realize email template in the multiplexing of different clients.
In one embodiment, the present embodiment provides asked to the mail service end mentioned in step S50 according to template acquisition It asks acquisition to identify the email template in corresponding memory space with memory space, and email template is sent to the specific of client Implementation method is described in detail.
Referring to Fig. 4, Fig. 4 shows a specific flow chart of step S50, details are as follows:
S501: mail service end, which is obtained, identifies the email template in corresponding memory space with memory space, and counts It the requested number of each email template and is selected in preset time range and chooses number for target template.
In the present embodiment, mail service termination receives the template acquisition request that user sends in client, will acquire this The email template of the corresponding memory space of user, then the requested number of each email template accumulates once correspondence, meanwhile, After email template all in memory space is sent to client by mail service end, if email template is selected as target by user Template, then the email template is selected chooses number to accumulate once correspondence for target template.
Specifically, mail service end is identified according to memory space, is obtained in memory space corresponding with memory space mark Email template, and count in preset time range the requested number of each email template and be selected as target mould Plate chooses number, wherein preset time range specifically can be one week or one month, and specific time range can be with It is configured in advance according to the needs of practical application, herein with no restrictions.
S502: mail service end calculates the ratio for choosing number and requested number of each email template, obtains each The history frequency of use of email template.
Specifically, mail service end chooses number and requested number to carry out ratio operation using each email template, The ratio for choosing number and requested number for calculating each email template obtains the history frequency of use of each email template, The history frequency of use is for describing the frequency degree that is used of the email template in preset time range.
S503: mail service end is according to the history frequency of use of email template, by email template according to history frequency of use Sequence from high to low is sent to client.
Specifically, it is calculated the history frequency of use of each email template according to step S502, mail service end is by postal Part template is sent to client according to the sequence of history frequency of use from high to low, enables a client to according to reception mail mould Email template is shown in the interactive interface of client that preferential show is gone through by the sequence of plate according to the sequence for receiving email template The higher email template of history frequency of use is supplied to user's selection, improves the efficiency that email template is chosen.
In the present embodiment, the email template in memory space is obtained by mail service end, and counted when preset Between the requested number of each email template and be selected and choose number for target template in range, by calculating each mail The ratio for choosing number and requested number of template obtains the history frequency of use of each email template, to determine mail mould The frequency degree that plate is used, further according to the history frequency of use of email template, by email template according to history frequency of use from High to Low sequence is sent to client, enables a client to preferentially show that the higher email template of history frequency of use provides It is selected to user, improves the efficiency that email template is chosen.
It in one embodiment, i.e., will at mail service end according to the history frequency of use of email template after step S503 After email template is sent to client according to the sequence of history frequency of use from high to low, mail is taken in the e-mail sending method Business end can also send recommendation template in sequence, and details are as follows:
As shown in figure 5, the e-mail sending method further includes following steps after step S503:
S5031: mail service end confirms the user department of user according to user information.
Specifically, there are the business module being responsible for specially, the application item hair of user in the client in each department of company The business mail sent is related with the department where user, since the user information of user includes user department, mail service end root The user department of user can be confirmed according to user information, being matched with will pass through user department inquiry with the business mail sent is needed Spend higher email template.
S5032: mail service end is according to user department, and inquiry is in identical portions with user from preset customer data base The email template of the other users of door calculates the history frequency of use of each association email template as association email template.
Specifically, mail service end is according to user department, and inquiry is in identical with user from preset customer data base The email template of the other users of department is as association email template, statistics each association mail mould in preset time range The requested number of plate and be selected the number of choosing for target template, calculate each association email template choose number and by The ratio of request number of times, to obtain the history frequency of use of each association email template, wherein preset time range is specific It can be one week or one month, specific time range can be configured in advance according to the needs of practical application, herein not It is limited.
S5033: mail service end obtains history in association email template according to the history frequency of use of association email template Frequency of use highest top n association email template will recommend template to be sent to client as recommending template, wherein N is Positive integer.
Specifically, the history frequency of use of each association email template, mail service end are calculated according to step S5032 The highest top n association email template of history frequency of use in association email template is obtained as recommendation template, and mould will be recommended Plate is sent to client, provides more email templates and selects to user, so that user can obtain more outstanding postals Part template, wherein N is positive integer, for example, N specifically can be 3, but it is not limited to this, and the specific value of N can be according to reality It needs to be configured, herein with no restrictions.
In the present embodiment, by mail service end according to user department, inquiry and use from preset customer data base Family is in the email template of the other users of same department as association email template, and calculates going through for each association email template History frequency of use obtains the higher association email template of history frequency of use in association email template and is used as and recommends template, thus By recommend template be sent to client, provide more mail moulds for user and select, so as to user can obtain more it is excellent Elegant email template is applied in client in the business mail of application item, improve intelligent level that email template is recommended and The efficiency that email template is chosen.
In one embodiment, the present embodiment provides to the client call mail service end offer mentioned in step S80 Mail transmission interface, be described in detail by the concrete methods of realizing that mail service end sends mail to be sent.
Referring to Fig. 6, Fig. 6 shows a specific flow chart of step S80, details are as follows:
S801: mail to be sent is added to by client have been preset the mail of post time and e-mail sending formula and has delayed It deposits in pond.
Specifically, mail cache pool is that client presets memory space for storing mail to be sent, each postal Part cache pool is provided with corresponding post time and e-mail sending formula.
Wherein, post time can be instant transmission, be also possible to regularly send, for example, can be set to the morning 10 points of transmission business mails, or be set as working time transmission business mail etc., it specifically can be according to the demand of practical business It is configured post time, herein with no restrictions.
Wherein, business mail higher for security requirement, e-mail sending formula can be encryption sending method, client It holds after carrying out email encryption processing according to preset cipher mode to the file to be sent of mail cache pool, the postal encrypted Part does transmission processing again, enhances the safety of business mail.Business mail biggish for the quantity disposably sent, mail hair Send mode can be speed limit perhaps limit the quantity transmission avoid the too fast perhaps quantity of transmission speed excessive and cause congestion or recognized Being set to advertisement matter leads to the loss of business mail, specifically can be configured e-mail sending according to the demand of practical business Formula, herein with no restrictions.
S802: if reaching post time, the mail transmission interface that client tune mail service end provides, according to postal Part sending method sends the mail to be sent in mail cache pool.
Specifically, if reaching the post time of mail cache pool, the mail that client tune mail service end provides Transmission interface sets (Internet Protocol Address, the internet protocol address) address IP and the use at mail service end In the port information for sending mail, mail service end will be according to corresponding e-mail sending formula, by network by mail cache pool Mail to be sent be sent to the email address of recipient.
Further, mail service end send mail to be sent after successfully arriving at the mail server of recipient, It will get the mail and send success receipt, and after the whole mail to be sent of mail cache pool is sent completely, send lose if it exists Lose do not get the mail perhaps send the mail to be sent of success receipt then to send failure or do not get the mail transmission at The mail to be sent of function receipt carries out mail transmission processing again, until reaching preset mail transmission times, and exports It sends failure or does not get the mail and send the information of the mail to be sent of success receipt to client, wherein this is preset Mail transmission times can be specifically configured according to actual needs, herein with no restrictions.
In the present embodiment, mail to be sent is added to by client and has preset post time and mail transmission In the mail cache pool of mode, if reaching post time, the mail transmission interface that client tune mail service end provides, The mail to be sent in mail cache pool is sent according to e-mail sending formula, to realize the flexible transmission of business mail, is improved The transmission success rate of mail.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of mail transmission system is provided, mail is sent out in the mail transmission system and above-described embodiment Delivery method corresponds.As shown in fig. 7, the mail transmission system includes mail service end and client, wherein mail service end Including space creation module 71, template configuration module 72 and template sending module 73, client includes mark enquiry module 74, asks Sending module 75, template is asked to choose module 76, mail generation module 77 and mail sending module 78.Each functional module is described in detail It is as follows:
Mail transmission system includes mail service end and client, and mail service end includes:
Space creation module 71, the user information inputted for receiving user in mail management platform, and believed according to user Breath is the memory space mark that user creates memory space and memory space, by user information storage corresponding with memory space mark To preset customer data base;
Template configuration module 72, for receiving user in the email template of mail management platform configuration, and by email template Store memory space;
Template sending module 75, for being obtained in memory space corresponding with memory space mark according to template acquisition request Email template, and email template is sent to client, so that user selects;
Client includes:
Enquiry module 74 is identified, if the request for sending E-mail for receiving user, is logged according to user in client User information, in preset customer data base inquire user memory space mark;
Request sending module 75 obtains interface using the template that mail service end provides for identifying according to memory space Template acquisition request is sent to mail service end;
Template chooses module 76, and the email template for selecting user is as target template;
Mail generation module 77, it is raw for the Mail Contents for including in request for sending E-mail to be filled up in target template At mail to be sent;
Mail sending module 78, the mail transmission interface for calling mail service end to provide, is sent out by mail service end Send mail to be sent.
Further, the template configuration module 72 at mail service end includes:
Information checking submodule, it is defeated in mail management platform to user for according to the user information in customer data base The user information entered is verified, and check results are obtained;
Template configuration submodule is provided a user if being that verification passes through for check results by mail management platform Preset template basic configuration information, so that user configures email template according to preset template basic configuration information;
Template sub-module stored is believed for receiving the email template of user configuration, and by email template storage to user Cease corresponding memory space.
Further, the template sending module 73 at mail service end includes:
Data statistics submodule for obtaining the email template identified in corresponding memory space with memory space, and is united Meter the requested number of each email template and is selected in preset time range and chooses number for target template;
Data computational submodule is obtained for calculating the ratio for choosing number and requested number of each email template The history frequency of use of each email template;
Template sending submodule uses email template according to history for the history frequency of use according to email template The sequence of frequency from high to low is sent to client.
Further, the mail service end further include:
User department enquiry module, for confirming the user department of user according to user information;
Relation template obtains module, for inquiring from preset customer data base and being in user according to user department The email template of the other users of same department is as association email template, and the history for calculating each association email template uses Frequency;
Recommend template sending module, for the history frequency of use according to association email template, obtains association email template The middle highest top n association email template of history frequency of use will recommend template to be sent to client as recommendation template, In, N is positive integer.
Further, the mail sending module 78 of client includes:
Mail cache sub-module has preset post time and e-mail sending formula for mail to be sent to be added to Mail cache pool in;
Mail sending submodule, if the mail transmission for adjusting mail service end to provide connects for reaching post time Mouthful, the mail to be sent in mail cache pool is sent according to e-mail sending formula.
Specific about mail transmission system limits the restriction that may refer to above for e-mail sending method, herein not It repeats again.Modules in above-mentioned mail transmission system can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 8.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of e-mail sending method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize above-described embodiment e-mail sending when executing computer program Mail service end or the step of client executing in method, such as step S10 shown in Fig. 2 to step S80, alternatively, processor The mail service end of mail transmission system in above-described embodiment or the function of each module of client are realized when executing computer program Can, such as module 71 shown in Fig. 7 is to the function of module 78.To avoid repeating, which is not described herein again.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes the step of mail service end or client executing in above-described embodiment e-mail sending method when being executed by processor Suddenly, alternatively, processor realizes mail service end or the visitor of mail transmission system in above-described embodiment when executing computer program The function of each module in family end.To avoid repeating, which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include mail service end in such as embodiment of above-mentioned each method Or the corresponding process of client.Wherein, to memory, storage, data used in each embodiment provided herein Any reference of library or other media, may each comprise non-volatile and/or volatile memory.Nonvolatile memory may include Read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) Or flash memory.Volatile memory may include random access memory (RAM) or external cache.As explanation Non- limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), even numbers According to rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), storage Device bus (Rambus) directly RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic RAM (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of the system is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of e-mail sending method, which is characterized in that the e-mail sending method includes:
The user information for the mail management platform input that mail service end reception user provides at the mail service end, and according to The user information is the memory space mark that the user creates memory space and the memory space, by the user information Preset customer data base is arrived in storage corresponding with memory space mark;
The mail service end receives the user in the email template of the mail management platform configuration, and by the mail mould Plate is stored to the memory space;
If client receives the request for sending E-mail of the user, according to the user the client log in described in User information inquires the memory space mark of the user in the preset customer data base;
The client is identified according to the memory space, and the template provided using the mail service end obtains interface to described Mail service end sends template acquisition request;
The mail service end obtains in memory space corresponding with memory space mark according to the template acquisition request Email template, and the email template is sent to the client, so that the user selects;
The email template that the client selects the user is as target template;
The Mail Contents for including in the request for sending E-mail are filled up in the target template by the client, are generated pending Send mail;
The mail transmission interface that mail service end described in the client call provides, by described in the transmission of the mail service end Mail to be sent.
2. e-mail sending method as described in claim 1, which is characterized in that the mail service end receives the user in institute The email template of mail management platform configuration is stated, and the email template is stored to the memory space and includes:
The mail service end is according to the user information in the customer data base, to the user in the mail management platform The user information of input is verified, and check results are obtained;
If the check results are that verification passes through, the mail service end is mentioned by the mail management platform to the user For preset template basic configuration information, so that the user configures the postal according to the preset template basic configuration information Part template;
The mail service end receives the email template of the user configuration, and email template storage is arrived and the user The corresponding memory space of information.
3. e-mail sending method as described in claim 1, which is characterized in that the mail service end is obtained according to the template Request obtains and identifies the email template in corresponding memory space with the memory space, and the email template is sent to The client includes:
The mail service end, which is obtained, identifies the email template in corresponding memory space with the memory space, and counts pre- If time range in each email template requested number and be selected and choose number for target template;
The mail service end calculates the ratio for choosing number and the requested number of each email template, obtains To the history frequency of use of each email template;
The mail service end makes the email template according to the history according to the history frequency of use of the email template The client is sent to the sequence of frequency from high to low.
4. e-mail sending method as claimed in claim 3, which is characterized in that the user information includes user department, described Mail service end according to the history frequency of use of the email template, by the email template according to the history frequency of use from High to Low sequence is sent to after the client, the e-mail sending method further include:
The mail service end confirms the user department of the user according to the user information;
The mail service end is inquired from the preset customer data base and is in the user according to the user department The email template of the other users of same department calculates the history of each association email template as association email template Frequency of use;
The mail service end obtains and goes through in the association email template according to the history frequency of use of the association email template Association email template described in the highest top n of history frequency of use is as recommending template, and described in the recommendations template is sent to Client, wherein N is positive integer.
5. e-mail sending method as described in claim 1, which is characterized in that mail service end described in the client call mentions The mail transmission interface of confession, sending the mail to be sent by the mail service end includes:
The mail to be sent is added to by the client have been preset the mail of post time and e-mail sending formula and has delayed It deposits in pond;
If reaching the post time, the mail transmission interface that mail service end described in the client call provides, The mail to be sent in the mail cache pool is sent according to the e-mail sending formula.
6. a kind of mail transmission system, which is characterized in that the mail transmission system includes mail service end and client, In, pass through network connection between the mail service end and the client;
The mail service end includes:
Space creation module, the user information inputted for receiving user in mail management platform, and according to the user information The memory space mark of memory space and the memory space is created for the user, the user information and the storage is empty Between identify corresponding storage and arrive preset customer data base;
Template configuration module, for receiving the user in the email template of the mail management platform configuration, and by the postal Part template is stored to the memory space;
Template sending module, for obtaining memory space corresponding with memory space mark according to the template acquisition request In email template, and the email template is sent to the client, so that the user selects;
The client includes:
Enquiry module is identified, if the request for sending E-mail for receiving the user, according to the user in the client The user information logged in is held, the memory space mark of the user is inquired in the preset customer data base;
Request sending module, for being identified according to the memory space, the template acquisition provided using the mail service end is connect Mouth sends template acquisition request to the mail service end;
Template chooses module, and the email template for selecting the user is as target template;
Mail generation module, for the Mail Contents for including in the request for sending E-mail to be filled up in the target template, Generate mail to be sent;
Mail sending module, the mail transmission interface for calling the mail service end to provide, passes through the mail service end Send the mail to be sent.
7. mail transmission system as claimed in claim 6, which is characterized in that in the mail service end, the template is matched Setting module includes:
Information checking submodule, for according to the user information in the customer data base, to the user in the mail pipe The user information of platform input is verified, and check results are obtained;
Template configuration submodule, if being that verification passes through for the check results, by the mail management platform to described User provides preset template basic configuration information, so that the user configures according to the preset template basic configuration information The email template;
Template sub-module stored arrives and institute for receiving the email template of the user configuration, and by email template storage State the corresponding memory space of user information.
8. mail transmission system as claimed in claim 6, which is characterized in that in the mail service end, the template hair The module is sent to include:
Data statistics submodule for obtaining the email template identified in corresponding memory space with the memory space, and is united Meter the requested number of each email template and is selected in preset time range and chooses number for target template;
Data computational submodule, for calculating the ratio for choosing number and the requested number described in each email template Value, obtains the history frequency of use of each email template;
Template sending submodule, for the history frequency of use according to the email template, by the email template according to described The sequence of history frequency of use from high to low is sent to the client.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Mail service end or the step of client executing in any one of 5 e-mail sending methods.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realizing the mail in e-mail sending method as described in any one of claim 1 to 5 when the computer program is executed by processor The step of server-side or client executing.
CN201811093263.6A 2018-09-19 2018-09-19 Mail sending method, mail sending system, computer equipment and storage medium Active CN109104360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811093263.6A CN109104360B (en) 2018-09-19 2018-09-19 Mail sending method, mail sending system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811093263.6A CN109104360B (en) 2018-09-19 2018-09-19 Mail sending method, mail sending system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109104360A true CN109104360A (en) 2018-12-28
CN109104360B CN109104360B (en) 2022-11-25

Family

ID=64866709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811093263.6A Active CN109104360B (en) 2018-09-19 2018-09-19 Mail sending method, mail sending system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109104360B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109768919A (en) * 2019-01-29 2019-05-17 深圳市小满科技有限公司 E-mail sending method, device, computer installation and storage medium
CN110351182A (en) * 2019-05-31 2019-10-18 平安科技(深圳)有限公司 E-mail sending method, device, equipment and computer readable storage medium
CN110380949A (en) * 2019-05-24 2019-10-25 平安普惠企业管理有限公司 Intranet e-mail sending method, device, computer equipment and storage medium
CN111181842A (en) * 2019-12-29 2020-05-19 苏州浪潮智能科技有限公司 Mail sending method and system based on different business logics
CN111918368A (en) * 2020-06-19 2020-11-10 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method and device and computer equipment
CN112686017A (en) * 2020-12-29 2021-04-20 深圳前海微众银行股份有限公司 Mail report management method, system, device and computer storage medium
CN113595864A (en) * 2020-04-30 2021-11-02 北京字节跳动网络技术有限公司 Method, device, electronic equipment and storage medium for forwarding mails
CN114363284A (en) * 2021-12-23 2022-04-15 深圳市六度人和科技有限公司 Mobile-terminal-based mail batch sending method, device and storage medium
CN114500439A (en) * 2022-01-20 2022-05-13 统信软件技术有限公司 Mail downloading method, device, computing equipment and storage medium
CN115567478A (en) * 2021-07-01 2023-01-03 京东科技控股股份有限公司 Mail generating and sending method, device and storage medium
CN117057724A (en) * 2023-07-04 2023-11-14 中国经济信息社有限公司 Automatic manuscript construction and issuing method and device, electronic equipment and medium
CN117240819A (en) * 2023-11-10 2023-12-15 天津异乡好居网络科技股份有限公司 Mail configuration method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608559A (en) * 2015-12-28 2016-05-25 歌尔声学股份有限公司 Generation method and system of multi-language mail
CN106375196A (en) * 2016-09-21 2017-02-01 广州视睿电子科技有限公司 Method and device for sending bulk mails
US20170316363A1 (en) * 2016-04-28 2017-11-02 Microsoft Technology Licensing, Llc Tailored recommendations for a workflow development system
CN107395622A (en) * 2017-08-18 2017-11-24 四川长虹电器股份有限公司 Method without cipher safety authentication
CN108228166A (en) * 2018-03-15 2018-06-29 链家网(北京)科技有限公司 A kind of back-end code generation method and system based on template

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608559A (en) * 2015-12-28 2016-05-25 歌尔声学股份有限公司 Generation method and system of multi-language mail
US20170316363A1 (en) * 2016-04-28 2017-11-02 Microsoft Technology Licensing, Llc Tailored recommendations for a workflow development system
CN106375196A (en) * 2016-09-21 2017-02-01 广州视睿电子科技有限公司 Method and device for sending bulk mails
CN107395622A (en) * 2017-08-18 2017-11-24 四川长虹电器股份有限公司 Method without cipher safety authentication
CN108228166A (en) * 2018-03-15 2018-06-29 链家网(北京)科技有限公司 A kind of back-end code generation method and system based on template

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109768919A (en) * 2019-01-29 2019-05-17 深圳市小满科技有限公司 E-mail sending method, device, computer installation and storage medium
CN110380949A (en) * 2019-05-24 2019-10-25 平安普惠企业管理有限公司 Intranet e-mail sending method, device, computer equipment and storage medium
CN110351182A (en) * 2019-05-31 2019-10-18 平安科技(深圳)有限公司 E-mail sending method, device, equipment and computer readable storage medium
CN110351182B (en) * 2019-05-31 2022-06-17 平安科技(深圳)有限公司 Mail sending method, device, equipment and computer readable storage medium
CN111181842A (en) * 2019-12-29 2020-05-19 苏州浪潮智能科技有限公司 Mail sending method and system based on different business logics
CN113595864A (en) * 2020-04-30 2021-11-02 北京字节跳动网络技术有限公司 Method, device, electronic equipment and storage medium for forwarding mails
US11924157B2 (en) 2020-04-30 2024-03-05 Beijing Bytedance Network Technology Co., Ltd. Email forwarding method and apparatus, electronic device, and storage medium
CN111918368A (en) * 2020-06-19 2020-11-10 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method and device and computer equipment
CN111918368B (en) * 2020-06-19 2024-08-30 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method, device and computer equipment
CN112686017A (en) * 2020-12-29 2021-04-20 深圳前海微众银行股份有限公司 Mail report management method, system, device and computer storage medium
CN115567478A (en) * 2021-07-01 2023-01-03 京东科技控股股份有限公司 Mail generating and sending method, device and storage medium
CN114363284A (en) * 2021-12-23 2022-04-15 深圳市六度人和科技有限公司 Mobile-terminal-based mail batch sending method, device and storage medium
CN114363284B (en) * 2021-12-23 2024-03-19 深圳市六度人和科技有限公司 Mail batch sending method, device and storage medium based on mobile terminal
CN114500439A (en) * 2022-01-20 2022-05-13 统信软件技术有限公司 Mail downloading method, device, computing equipment and storage medium
CN114500439B (en) * 2022-01-20 2024-05-14 统信软件技术有限公司 Mail downloading method, device, computing equipment and storage medium
CN117057724A (en) * 2023-07-04 2023-11-14 中国经济信息社有限公司 Automatic manuscript construction and issuing method and device, electronic equipment and medium
CN117240819B (en) * 2023-11-10 2024-02-09 天津异乡好居网络科技股份有限公司 Mail configuration method, device, equipment and computer readable storage medium
CN117240819A (en) * 2023-11-10 2023-12-15 天津异乡好居网络科技股份有限公司 Mail configuration method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109104360B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN109104360A (en) E-mail sending method, system, computer equipment and storage medium
US11665285B2 (en) Telephony web event system and method
US7092998B2 (en) Software architecture for wireless data and method of operation thereof
US7231428B2 (en) Communication system using alias management rules for automatically changing sender alias in a message based on group that includes recipient address
CN102238107B (en) The technology of media file is shared by information receiving and transmitting
US9323913B2 (en) Web based extranet architecture providing applications to non-related subscribers
US9240904B2 (en) System and method for a messaging assistant
CN100556007C (en) A kind of method and system of integrating the E-mail address that a plurality of service providers provide
US8510367B2 (en) Distributive real time information dissemination and information gathering system and service with dynamically harmonized communication channels
US20050144219A1 (en) Communication information sharing system, communication information sharing method, communication information sharing program
US20100255861A1 (en) System and Method for Transferring Contact Information to a Recipient
US20130035079A1 (en) Method and system for establishing data commuication channels
WO2008021184A2 (en) User generated dynamic mobile service
US20080045192A1 (en) Method, system and management center server for providing mobile service
CN108989189A (en) A kind of information push method based on wechat enterprise
CN110457629A (en) Permission processing, authority control method and device
CN101729491A (en) Method, device and system for enhancing application reliability of script-based business
US20190158583A1 (en) System and method for estimating distributed consumption of a quota
CN109840094A (en) A kind of dispositions method of database, device and storage equipment
US8489772B2 (en) Method for mechanically generating content for messages
CN104956354A (en) Anonymous notification system and method with reduced traceability on end device
US10225224B1 (en) Web and voice message notification system and process
CN112637256B (en) Establishing communication link and device, storage medium and electronic device
Hornsby et al. Event. Hub: An event-driven information hub for mobile devices
CN110134859B (en) Personal information management method and system

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