CN109495380A - E-mail sending method, device, computer equipment and storage medium - Google Patents
E-mail sending method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109495380A CN109495380A CN201910012734.4A CN201910012734A CN109495380A CN 109495380 A CN109495380 A CN 109495380A CN 201910012734 A CN201910012734 A CN 201910012734A CN 109495380 A CN109495380 A CN 109495380A
- Authority
- CN
- China
- Prior art keywords
- parameters
- targeted mails
- text data
- information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/42—Mailbox-related aspects, e.g. synchronisation of mailboxes
Abstract
This application involves a kind of e-mail sending method, device, computer equipment and storage mediums.The described method includes: obtaining mail parameters, by mail parameters storage into script table, mail record table is generated;In preset mail sending instant, the load information at current time is read, current accessible number of mail is determined according to load information;The mail parameters that quantity is number of mail are extracted from mail record table, include at least one mail parameters in targeted mails parameter sets as targeted mails parameter sets;Targeted mails are generated according to the mail parameters in targeted mails parameter sets, and targeted mails are sent to mail server.This programme is based on data processing technique, the number of mail of mail server is sent to by controlling, mail is avoided to send the generation of obstruction, it reduces mail and sends task to the occupancy of operation system resource, the operational efficiency of business system server is effectively improved, the generation of operation system resource exhaustion, operation system collapse is reduced.
Description
Technical field
This application involves fields of communication technology, more particularly to a kind of e-mail sending method, device, computer equipment and deposit
Storage media.
Background technique
It is continuously improved as the operation flow of operation system automates, carries out process in the different business process of operation system
In, operation system often generate it is a large amount of inform the system Mails such as mail, processing mail be sent to business related system or
In subscriber mailbox;When the number of mail that operation system generates within a certain period of time is more than certain threshold value, a large amount of mail hair
It send task that can occupy the excessive resource of operation system, increases the pressure of business system server, constantly accumulated when mail sends task
It is tired, result even in operation system resource exhaustion, operation system collapse so that operation system to be more than quantity limitation mail into
Row shielding, the situation that mail sends failure take place frequently, and the transmitting efficiency of mail reduces.
Summary of the invention
Based on this, it is necessary to which the excessive resource of operation system can be occupied by sending task for above-mentioned a large amount of mail, be caused
The technical issues of operation system resource exhaustion, operation system collapse, provide a kind of e-mail sending method, device, computer equipment
And storage medium.
A kind of e-mail sending method, which comprises
Mail parameters are obtained, by mail parameters storage into script table, generate mail record table;
In preset mail sending instant, the load information at current time is read, is determined according to the load information current
Accessible number of mail;
The mail parameters that quantity is the number of mail are extracted from the mail record table, as targeted mails parameter
Gather, includes at least one described mail parameters in the targeted mails parameter sets;
Targeted mails are generated according to the mail parameters in the targeted mails parameter sets, and by the targeted mails
It is sent to mail server.
In implementing at wherein one, the mail parameters include body text data and address of the addressee information;
It is described that the mail parameters are stored into the step into script table, comprising:
Identify the Permission Levels of address of the addressee information in the mail parameters;
When the Permission Levels of the address of the addressee information are low rights grade, by the feature in the body text data
Information replaces with shielding symbol, obtains shielding text data;
Using the address of the addressee information and the shielding text data as mail parameters, store into script table.
In implementing at wherein one, the characteristic information by the body text data replaces with shielding symbol, obtains
To the step of shielding text data, comprising:
The body text data are segmented, the vocabulary of the body text data is obtained;
The vocabulary and preset sample vocabulary are compared, mesh will be determined as with the consistent vocabulary of sample vocabulary
Mark vocabulary;
Characteristic information is determined from the body text data according to the target vocabulary;
The characteristic information is replaced with into shielding symbol, obtains shielding text data.
In implementing at wherein one, the mail parameters according in the targeted mails parameter sets generate target
The step of mail, comprising:
Determine the data type of each supplemental characteristic in mail parameters described in the targeted mails parameter sets;
Mail format template is obtained, determines template position corresponding with different types of data in mail format template;
According to the data type of supplemental characteristic, by the parameter number in mail parameters described in the targeted mails parameter sets
According to corresponding template position in the mail format template is directed into, targeted mails corresponding with the mail parameters are generated.
In implementing at wherein one, after the step of targeted mails are sent to mail server, further includes:
Monitor the mail server feedback acknowledgment information;
If in preset time range, not hearing the confirmation message of the mail server feedback, then institute is retransmitted
Targeted mails are stated to the mail server.
A kind of mail sending device, described device include:
Mail parameters obtain module, for obtaining mail parameters, by mail parameters storage into script table, generate postal
Part record sheet;
Number of mail obtains module, for reading the load information at current time in preset mail sending instant, according to
The load information determines current accessible number of mail;
Mail parameters determining module, for extracting the mail that quantity is the number of mail from the mail record table
Parameter includes at least one described mail parameters in the targeted mails parameter sets as targeted mails parameter sets;
Targeted mails sending module, for generating target according to the mail parameters in the targeted mails parameter sets
Mail, and the targeted mails are sent to mail server.
The mail parameters include body text data and address of the addressee information in one of the embodiments,;
The mail parameters obtain module and are used for:
Identify the Permission Levels of address of the addressee information in the mail parameters;
When the Permission Levels of the address of the addressee information are low rights grade, by the feature in the body text data
Information replaces with shielding symbol, obtains shielding text data;
Using the address of the addressee information and the shielding text data as mail parameters, store into script table.
The targeted mails sending module in one of the embodiments, is used for:
Determine the data type of each supplemental characteristic in mail parameters described in the targeted mails parameter sets;
Mail format template is obtained, determines template position corresponding with different types of data in mail format template;
According to the data type of supplemental characteristic, by the parameter number in mail parameters described in the targeted mails parameter sets
According to corresponding template position in the mail format template is directed into, targeted mails corresponding with the mail parameters are generated.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Mail parameters are obtained, by mail parameters storage into script table, generate mail record table;
In preset mail sending instant, the load information at current time is read, is determined according to the load information current
Accessible number of mail;
The mail parameters that quantity is the number of mail are extracted from the mail record table, as targeted mails parameter
Gather, includes at least one described mail parameters in the targeted mails parameter sets;
Targeted mails are generated according to the mail parameters in the targeted mails parameter sets, and by the targeted mails
It is sent to mail server.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Mail parameters are obtained, by mail parameters storage into script table, generate mail record table;
In preset mail sending instant, the load information at current time is read, is determined according to the load information current
Accessible number of mail;
The mail parameters that quantity is the number of mail are extracted from the mail record table, as targeted mails parameter
Gather, includes at least one described mail parameters in the targeted mails parameter sets;
Targeted mails are generated according to the mail parameters in the targeted mails parameter sets, and by the targeted mails
It is sent to mail server.
Above-mentioned e-mail sending method, device, computer equipment and storage medium are remembered by saving mail parameters to mail
It records in table, current accessible number of mail is determined according to the load information of operation system in mail sending instant, to extract
Quantity is that the mail parameters of the number of mail generate targeted mails, and send targeted mails out, and this programme is sent to by control
The number of mail of mail server avoids mail from sending the generation of obstruction, reduces mail and sends task to operation system resource
It occupies, effectively improves the operational efficiency of business system server, reduce operation system resource exhaustion, operation system collapse, avoid
Mail sends the transmission of failure situation, improves the transmitting efficiency of mail.
Detailed description of the invention
Fig. 1 is the application scenario diagram of e-mail sending method in one embodiment;
Fig. 2 is the flow diagram of e-mail sending method in one embodiment;
Fig. 3 is the stream for generating targeted mails step in one embodiment according to the mail parameters in targeted mails parameter sets
Journey schematic diagram;
Fig. 4 is the structural block diagram of mail sending device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
E-mail sending method provided by the present application can be applied in application environment as shown in Figure 1.Wherein, business system
System 102 is communicated with mail server 104 by network by network.By taking operation system 102 is order auditing system as an example
It is illustrated, when an order completes audit in operation system 102 and order audit passes through, operation system 102 needs to send out
It send and informs mail to related personnel, operation system 102 can generate corresponding mail parameters according to the relevant information of order at this time, protect
It is stored in mail record table;In the mail sending instant of operation system 102, operation system 102 reads itself current load letter
Breath determines that current manageable mail sends the quantitative value of task, and reads phase from mail record table according to the quantitative value
With the mail parameters of quantity, targeted mails are generated according to the mail parameters extracted, and be sent in mail server 104.Its
In, operation system 102 and mail server 104 can use the server of the either multiple server compositions of independent server
Cluster is realized.
In one embodiment, as shown in Fig. 2, providing a kind of e-mail sending method, it is applied in Fig. 1 in this way
It is illustrated for operation system, comprising the following steps:
Step S210: obtaining mail parameters, by mail parameters storage into script table, generates mail record table.
In this step, mail parameters include the address of the addressee information of mail, the body matter of mail, mail title letter
The different types of supplemental characteristic such as breath, Email attachment;Operation system obtains the relevant mail parameters of mail, and by the mail parameters
In each data parameters store into script table, generate mail record table.
For example, operation system, which needs to send, informs when business personnel completes a business processing operation in operation system
Mail is to related personnel, and operation system can generate corresponding mail parameters according to handled business information at this time, and mail
Parameters data are saved in one by one in the table constructed in advance in parameter.
Step S220: in preset mail sending instant, reading the load information at current time, is determined according to load information
Current accessible number of mail.
In this step, mail sending instant refers to that is be arranged in operation system sends the time of mail to mail server,
Divide for example, operation system can be set at 00 00, had been a mail sending instant every 5 minutes.Further, business system
System can be configured mail according to the intensity of traffic in operation system and send frequency, and then be sent out according to last mail
Send the mail sending instant determined constantly next time.
For operation system when mail sending instant arrives, the load information of query service device, load information includes industry
Be engaged in the service condition of CPU (Central Processing Unit, central processing unit) of system server, memory service condition,
Etc. information such as number of mail to be processed;After operation system obtains load information, currently may be used according to load information calculation server
With the number of mail of processing.It, can be by obtaining the current accessible number of mail of load information calculation server of server
Control the quantity that mail is sent in subsequent transmission email process, a large amount of occupancy operation systems for avoiding mail from sending task are excessive
Resource, cause mail send task accumulation, system resource exhaust and system crash.
Step S230: the mail parameters that quantity is number of mail are extracted from mail record table, are joined as targeted mails
Manifold is closed, and includes at least one mail parameters in targeted mails parameter sets.
In this step, operation system is determined according to the load information of local server to after number of mail, from mail record
The mail parameters that respective numbers are extracted in table generate targeted mails parameter sets;Optionally, operation system can be according to mail
The generation time of mail parameters selects mail parameters in record sheet, and operation system is according to the generation time of mail parameters to mail
Mail parameters are ranked up in record sheet, then obtain the mail parameters for generating the time as preceding n item as targeted mails parameter, life
At targeted mails parameter sets, the value of n is equal to currently transmittable number of mail.
Step S240: targeted mails are generated according to the mail parameters in targeted mails parameter sets, and targeted mails are sent out
It send to mail server.
In this step, operation system is after the targeted mails parameter sets of acquisition, by the postal in targeted mails parameter sets
Part parameter processing generates transmissible mail at mail format, and calls mail transmission interface that targeted mails are sent to mail
Targeted mails are sent to other mailboxes by mail server by server.It should be noted that in targeted mails parameter sets
The quantity of mail parameters is often multiple, each mail parameters one envelope targeted mails of corresponding generation.
In above-mentioned e-mail sending method, by saving mail parameters into mail record table, in mail sending instant, root
Current accessible number of mail is determined according to the load information of operation system, to extract the mail that quantity is the number of mail
Parameter generates targeted mails, and sends targeted mails, and this programme is sent to the number of mail of mail server by control, avoids
Mail sends the generation of obstruction, reduces mail and sends task to the occupancy of operation system resource, effectively improves operation system service
The operational efficiency of device reduces the case where mail sends failure, improves the transmitting efficiency of mail.
The addressee of mail transmitted by operation system be often it is multiple, for the information security of certified mail text,
Different Permission Levels can be set to different addressees, message body content is shielded for the addressee of low rights grade
Sensitive information avoids leakage of information.In one embodiment, mail parameters include body text data and address of the addressee letter
Breath;Mail parameters are stored into the step into script table, comprising: the permission etc. of address of the addressee information in identification mail parameters
Grade;When address of the addressee information Permission Levels be low rights grade, the characteristic information in body text data is replaced with into screen
Symbol is covered, shielding text data is obtained;Using address of the addressee information and shielding text data as mail parameters, foot is arrived in storage
In this table.
In the present embodiment, characteristic information may include the relevant personal information of user, such as ID card No., the use of user
Family contact method and user's transacting business etc..Operation system is with obtaining body text data and addressee in mail parameters
After the information of location, the permission etc. of the corresponding addressee of address of the addressee information can be searched from the addressee information table pre-saved
Grade, when the Permission Levels for recognizing address of the addressee information are low rights grade, by the characteristic information in body text data
Shielding symbol is replaced with, and is saved in script table using replaced shielding text data as final body text data.
For example, when the corresponding addressee of address of the addressee information is the external staff of operation system, address of the addressee letter
The Permission Levels of breath are set as inferior grade, can only check service related information, can not know the personal information of the user in mail,
Body text data corresponding with address of the addressee information are characterized the shielding text data that information replaces with shielding symbol.This
Outside, when the business personnel of the artificial operation system of the corresponding addressee of address of the addressee information, the permission etc. of the address of the addressee information
Grade is set as high-grade, can check all content informations of mail, without replacing the characteristic information in body text data
For shield symbol, the corresponding body text data of address of the addressee information be characterized information do not shielded by shielding symbol it is original
Body text information.
By replacing with characteristic information quilt for body text data corresponding with the address of the addressee information of low rights grade
The shielding text data of symbol replacement is shielded, so that sensitive information is shielded in the mail that the addressee of low rights grade obtains,
Leakage of information is avoided, the safety of e-mail messages is effectively improved.
In one embodiment, the characteristic information in body text data is replaced with into shielding symbol, obtains shielding text
The step of data, comprising: body text data are segmented, the vocabulary of body text data is obtained;By vocabulary with it is preset
Sample vocabulary compares, and will be determined as target vocabulary with the consistent vocabulary of sample vocabulary;According to target vocabulary from body text
Characteristic information is determined in data;Characteristic information is replaced with into shielding symbol, obtains shielding text data.
In the present embodiment, sample vocabulary may include vocabulary relevant to characteristic information.Such as " ID card No. ", " electricity
The vocabulary such as words number " and " amount of money ";Operation system obtains body text data to stammerer participle is carried out in body text data
In vocabulary the vocabulary is then determined as target when the vocabulary in body text data is consistent with pre-set sample vocabulary
Vocabulary, and using target vocabulary as initial position, the text data in body text data, the textual data that will meet are identified backward
According to characteristic information is determined as, this feature information is replaced using shielding symbol, by shielding the sensitive content in mail to be sent, is kept away
The personal information for exempting from mail is compromised, and effectively improves the safety of e-mail messages.
Specifically, to include that " telephone number: for 13729628189 ", operation system is to text in body text data
Stammerer participle is carried out in text data, obtains the vocabulary of body text data, and recognizes the " phone number in body text data
Code " is consistent with sample vocabulary, using " telephone number " this vocabulary as initial position, identifies 11 in body text data backward
Bit digital, and this 11 is determined as characteristic information for number, and replace this feature information using shielding symbol " * ", it is final to obtain
Shielding text data be " telephone number: * * * * * * * * * * * ".
Further, in one embodiment, the type setting that operation system can also in advance to different characteristic informations
Different Substitution Rules determine the information type of characteristic information according to target vocabulary after obtaining characteristic information, and determine and believe
The corresponding Substitution Rules of type are ceased, characteristic information is shielded according to Substitution Rules;To include " phone in body text data
Number: for 13729628189 ", operation system is 11 bit digitals of replacement for the shielding rules of 11 telephone number settings
The 4th to the 7th in character, so, the characteristic information obtained according to shielding rules is replaced using shielding symbol " * ", finally
The shielding text data of acquisition is " telephone number: 137****8189 ".
In one embodiment, target is generated according to the mail parameters in targeted mails parameter sets as shown in figure 3, providing
The flow diagram of mail step;The step of generating targeted mails according to the mail parameters in targeted mails parameter sets, comprising:
Step S310: the data type of each supplemental characteristic in targeted mails parameter sets in mail parameters is determined;
Step S320: mail format template is obtained, determines template corresponding with different types of data in mail format template
Position;
Step S330: according to the data type of supplemental characteristic, by the parameter in targeted mails parameter sets in mail parameters
Data are directed into corresponding template position in mail format template, generate targeted mails corresponding with mail parameters.
In the present embodiment, operation system obtains the mail parameters and mail format template in targeted mails parameter sets,
It wherein include the various parameters data of composition mail in mail parameters;Operation system fills in all types of supplemental characteristics into mail
In the corresponding position of format template, targeted mails are generated.For example, mail parameters include the address of the addressee information of mail, mail
Body matter and mail the different types of data parameters such as heading message, operation system obtaining mail format template
Afterwards, determine these data parameters of the heading message of address of the addressee information, the body matter of mail and mail in mail format
Position in template, to heading message is directed on the theme position in mail format template, by address of the addressee information
It is directed on the consignee location of mail format template, body matter is directed on the text position in mail format template,
Generate targeted mails.
By obtaining the parameter type of mail parameters, according to the position mapping relations of parameter type and mail format template,
Correct mail parameters are inserted into correct position, the targeted mails that can effectively send is generated, mail parameters is avoided to fill out
The mail that generation is chaotic, and generation can not be sent is write, improves the accuracy that targeted mails generate, and without to the mail parameters being related to
Mail is filled in one by one, improves the formation efficiency of mail.
For the transmission success rate for improving mail transmission efficiency, ensuring mail, mail is sent in mail management module
After mail server, if within a certain period of time, being not received by the confirmation message of mail server return, then next time
Mail sending instant generates again according to corresponding mail parameters and sends mail, and targeted mails are sent to mail service again
Device.In one embodiment, after the step of targeted mails being sent to mail server, further includes: monitor mail server
Feedback acknowledgment information;If in preset time range, not hearing the confirmation message of mail server feedback, then mesh is retransmitted
Mail is marked to mail server.
In the present embodiment, after mail server receives targeted mails, it is corresponding that targeted mails are sent to address of the addressee
Mail server in, and according to send result feedback acknowledgment information into operation system.Operation system is sending targeted mails
To mail server, the confirmation message of mail server feedback is monitored, in preset time range, if not hearing really
Recognize information, operation system sends targeted mails to mail server in mail sending instant next time again, effectively avoids
Mail does not retransmit mail after sending failure, and causing mail to send success rate reduces.
It should be understood that although each step in the flow chart of Fig. 2 or Fig. 3 is successively shown according to the instruction of arrow,
But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these
There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 2 or Fig. 3
At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps
One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily
Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or
Alternately execute.
In one embodiment, as shown in figure 4, providing a kind of mail sending device, comprising: mail parameters obtain module
410, number of mail obtains module 420, mail parameters determining module 430 and targeted mails sending module 440, in which:
Mail parameters obtain module 410, for obtaining mail parameters, by mail parameters storage into script table, generate postal
Part record sheet;
Number of mail obtains module 420, for reading the load information at current time in preset mail sending instant,
Current accessible number of mail is determined according to load information;
Mail parameters determining module 430, for extracting the mail parameters that quantity is number of mail from mail record table,
It include at least one mail parameters in targeted mails parameter sets as targeted mails parameter sets;
Targeted mails sending module 440, for generating targeted mails according to the mail parameters in targeted mails parameter sets,
And targeted mails are sent to mail server.
In one embodiment, mail parameters include body text data and address of the addressee information;Mail parameters obtain
Modulus block 410 is used for: the Permission Levels of address of the addressee information in identification mail parameters;When the permission etc. of address of the addressee information
Grade is low rights grade, and the characteristic information in body text data is replaced with shielding symbol, obtains shielding text data;It will receive
Part people address information and shielding text data are stored as mail parameters into script table.
In one embodiment, mail parameters obtain module 410 and are used for: segmenting, obtained just to body text data
The vocabulary of literary text data;Vocabulary and preset sample vocabulary are compared, will be determined as with the consistent vocabulary of sample vocabulary
Target vocabulary;Characteristic information is determined from body text data according to target vocabulary;Characteristic information is replaced with into shielding symbol, is obtained
To shielding text data.
In one embodiment, targeted mails sending module 440 is used for: determining mail parameters in targeted mails parameter sets
In each supplemental characteristic data type;Obtain mail format template, determine in mail format template with different types of data pair
The template position answered;According to the data type of supplemental characteristic, by the supplemental characteristic in targeted mails parameter sets in mail parameters
It is directed into corresponding template position in mail format template, generates targeted mails corresponding with mail parameters.
In one embodiment, device further includes that confirmation message obtains module, for monitoring mail server feedback acknowledgment
Information;If in preset time range, not hearing the confirmation message of mail server feedback, then targeted mails are retransmitted extremely
Mail server.
Specific about mail sending device limits the restriction that may refer to above for e-mail sending method, herein not
It repeats again.Modules in above-mentioned mail sending device 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 5.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 database of machine equipment is for data such as storage service parameter, mail record tables.The network interface of the computer equipment be used for
External terminal passes through network connection communication.To realize a kind of e-mail sending method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, the processor perform the steps of when executing computer program
Mail parameters are obtained, by mail parameters storage into script table, generate mail record table;
In preset mail sending instant, the load information at current time is read, can currently be located according to load information determination
The number of mail of reason;
The mail parameters that quantity is number of mail are extracted from mail record table, as targeted mails parameter sets, mesh
Marking includes at least one mail parameters in mail parameters set;
Targeted mails are generated according to the mail parameters in targeted mails parameter sets, and targeted mails are sent to mail clothes
Business device.
In one embodiment, mail parameters include body text data and address of the addressee information;Processor executes
Computer program, which is realized, stores the step into script table for mail parameters, implements following steps: in identification mail parameters
The Permission Levels of address of the addressee information;When the Permission Levels of address of the addressee information are low rights grade, by body text number
Characteristic information in replaces with shielding symbol, obtains shielding text data;By address of the addressee information and shielding textual data
According to as mail parameters, store into script table.
In one embodiment, processor executes computer program and realizes the characteristic information replacement in body text data
To shield symbol, when obtaining the step of shielding text data, specific implementation following steps: segmenting body text data,
Obtain the vocabulary of body text data;Vocabulary and preset sample vocabulary are compared, it will be with the consistent vocabulary of sample vocabulary
It is determined as target vocabulary;Characteristic information is determined from body text data according to target vocabulary;Characteristic information is replaced with into shielding
Symbol obtains shielding text data.
In one embodiment, processor executes computer program and realizes and joined according to the mail in targeted mails parameter sets
When number generates the step of targeted mails, implements following steps: determining each in mail parameters in targeted mails parameter sets
The data type of supplemental characteristic;Mail format template is obtained, determines mould corresponding with different types of data in mail format template
Board position;According to the data type of supplemental characteristic, the supplemental characteristic in targeted mails parameter sets in mail parameters is directed into
Corresponding template position in mail format template generates targeted mails corresponding with mail parameters.
In one embodiment, it is anti-that monitoring mail server is also performed the steps of when processor executes computer program
Present confirmation message;If in preset time range, not hearing the confirmation message of mail server feedback, then target is retransmitted
Mail is to mail server.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Mail parameters are obtained, by mail parameters storage into script table, generate mail record table;
In preset mail sending instant, the load information at current time is read, can currently be located according to load information determination
The number of mail of reason;
The mail parameters that quantity is number of mail are extracted from mail record table, as targeted mails parameter sets, mesh
Marking includes at least one mail parameters in mail parameters set;
Targeted mails are generated according to the mail parameters in targeted mails parameter sets, and targeted mails are sent to mail clothes
Business device.
In one embodiment, mail parameters include body text data and address of the addressee information;Computer program
It is executed by processor and realizes that implement following steps: identification mail is joined when mail parameters are stored the step into script table
The Permission Levels of address of the addressee information in number;When the Permission Levels of address of the addressee information are low rights grade, by text text
Characteristic information in notebook data replaces with shielding symbol, obtains shielding text data;By address of the addressee information and shielding text
Notebook data is stored as mail parameters into script table.
In one embodiment, computer program is executed by processor realization and replaces the characteristic information in body text data
It is changed to shielding symbol, when obtaining the step of shielding text data, following steps is implemented: body text data is divided
Word obtains the vocabulary of body text data;Vocabulary and preset sample vocabulary are compared, it will be with the consistent word of sample vocabulary
Remittance is determined as target vocabulary;Characteristic information is determined from body text data according to target vocabulary;Characteristic information is replaced with into screen
Symbol is covered, shielding text data is obtained.
In one embodiment, computer program is executed by processor realization according to the mail in targeted mails parameter sets
When parameter generates the step of targeted mails, implements following steps: determining in targeted mails parameter sets in mail parameters
The data type of each supplemental characteristic;Mail format template is obtained, is determined corresponding with different types of data in mail format template
Template position;According to the data type of supplemental characteristic, the supplemental characteristic in targeted mails parameter sets in mail parameters is imported
The corresponding template position into mail format template generates targeted mails corresponding with mail parameters.
In one embodiment, monitoring mail server is also performed the steps of when computer program is executed by processor
Feedback acknowledgment information;If in preset time range, not hearing the confirmation message of mail server feedback, then mesh is retransmitted
Mail is marked to mail server.
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 such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including 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.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of e-mail sending method, which comprises
Mail parameters are obtained, by mail parameters storage into script table, generate mail record table;
In preset mail sending instant, the load information at current time is read, can currently be located according to load information determination
The number of mail of reason;
The mail parameters that quantity is the number of mail are extracted from the mail record table, as targeted mails parameter set
It closes, includes at least one described mail parameters in the targeted mails parameter sets;
Targeted mails are generated according to the mail parameters in the targeted mails parameter sets, and the targeted mails are sent
To mail server.
2. the method according to claim 1, wherein the mail parameters include body text data and addressee
People's address information;
It is described that the mail parameters are stored into the step into script table, comprising:
Identify the Permission Levels of address of the addressee information in the mail parameters;
When the Permission Levels of the address of the addressee information are low rights grade, by the characteristic information in the body text data
Shielding symbol is replaced with, shielding text data is obtained;
Using the address of the addressee information and the shielding text data as mail parameters, store into script table.
3. according to the method described in claim 2, it is characterized in that, the characteristic information by the body text data replaces
The step of being changed to shielding symbol, obtaining shielding text data, comprising:
The body text data are segmented, the vocabulary of the body text data is obtained;
The vocabulary and preset sample vocabulary are compared, target word will be determined as with the consistent vocabulary of sample vocabulary
It converges;
Characteristic information is determined from the body text data according to the target vocabulary;
The characteristic information is replaced with into shielding symbol, obtains shielding text data.
4. according to claim 1 to 3 any methods, which is characterized in that described according to the targeted mails parameter sets
In the mail parameters generate targeted mails the step of, comprising:
Determine the data type of each supplemental characteristic in mail parameters described in the targeted mails parameter sets;
Mail format template is obtained, determines template position corresponding with different types of data in mail format template;
According to the data type of supplemental characteristic, the supplemental characteristic in mail parameters described in the targeted mails parameter sets is led
Enter the corresponding template position into the mail format template, generates targeted mails corresponding with the mail parameters.
5. the method according to claim 1, wherein described be sent to mail server for the targeted mails
After step, further includes:
Monitor the mail server feedback acknowledgment information;
If in preset time range, not hearing the confirmation message of the mail server feedback, then the mesh is retransmitted
Mail is marked to the mail server.
6. a kind of mail sending device, which is characterized in that described device includes:
Mail parameters obtain module, for obtaining mail parameters, by mail parameters storage into script table, generate mail note
Record table;
Number of mail obtains module, for the load information at current time being read, according to described in preset mail sending instant
Load information determines current accessible number of mail;
Mail parameters determining module is joined for extracting the mail that quantity is the number of mail from the mail record table
Number includes at least one described mail parameters in the targeted mails parameter sets as targeted mails parameter sets;
Targeted mails sending module, for generating target postal according to the mail parameters in the targeted mails parameter sets
Part, and the targeted mails are sent to mail server.
7. device according to claim 6, which is characterized in that the mail parameters include body text data and addressee
People's address information;The mail parameters obtain module and are used for:
Identify the Permission Levels of address of the addressee information in the mail parameters;
When the Permission Levels of the address of the addressee information are low rights grade, by the characteristic information in the body text data
Shielding symbol is replaced with, shielding text data is obtained;
Using the address of the addressee information and the shielding text data as mail parameters, store into script table.
8. device according to claim 7, which is characterized in that the targeted mails sending module is used for:
Determine the data type of each supplemental characteristic in mail parameters described in the targeted mails parameter sets;
Mail format template is obtained, determines template position corresponding with different types of data in mail format template;
According to the data type of supplemental characteristic, the supplemental characteristic in mail parameters described in the targeted mails parameter sets is led
Enter the corresponding template position into the mail format template, generates targeted mails corresponding with the mail parameters.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012734.4A CN109495380B (en) | 2019-01-07 | 2019-01-07 | Mail sending method, mail sending device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012734.4A CN109495380B (en) | 2019-01-07 | 2019-01-07 | Mail sending method, mail sending device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109495380A true CN109495380A (en) | 2019-03-19 |
CN109495380B CN109495380B (en) | 2022-05-24 |
Family
ID=65714164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910012734.4A Active CN109495380B (en) | 2019-01-07 | 2019-01-07 | Mail sending method, mail sending device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495380B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110458710A (en) * | 2019-07-02 | 2019-11-15 | 平安科技(深圳)有限公司 | Request processing method, device, computer equipment and storage medium |
CN111210203A (en) * | 2020-01-08 | 2020-05-29 | 北京思特奇信息技术股份有限公司 | E-mail distribution method, system, medium and equipment |
CN116545976A (en) * | 2023-07-03 | 2023-08-04 | 深圳欧税通技术有限公司 | Intelligent management method, system and readable storage medium for business mail |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006310902A (en) * | 2005-04-26 | 2006-11-09 | Hitachi Ltd | Electronic mail service control system, apparatus, method and mail service shut down system, apparatus, and method |
US20070226300A1 (en) * | 2006-03-27 | 2007-09-27 | Suzelle Smith | System and method to prevent the sending of email messages to unqualified recipients |
JP2011141718A (en) * | 2010-01-07 | 2011-07-21 | Fujitsu Ltd | Mail management program, mail management device, and mail management method |
JP2011193155A (en) * | 2010-03-12 | 2011-09-29 | Fujitsu Ltd | Mail processing server, mail processing method, and mail processing program |
US20130047089A1 (en) * | 2011-08-21 | 2013-02-21 | Murali S. Kulathungam | System and Method to Consolidate and Update Digital Address Books |
CN103188125A (en) * | 2011-12-27 | 2013-07-03 | 腾讯科技(北京)有限公司 | E-mail system, E-mail generation method and E-mail sending method |
JP5449635B1 (en) * | 2013-09-30 | 2014-03-19 | 楽天株式会社 | E-mail transmission setting device, e-mail transmission setting method, program for e-mail transmission setting device, and storage medium |
WO2015045177A1 (en) * | 2013-09-30 | 2015-04-02 | 楽天株式会社 | Email generation device, email generation method, program for email generation device, and storage medium |
CN108259553A (en) * | 2017-10-09 | 2018-07-06 | 平安科技(深圳)有限公司 | The sending method and terminal device of business mail |
US20180316752A1 (en) * | 2017-04-28 | 2018-11-01 | International Business Machines Corporation | Sender system status-aware load balancing |
-
2019
- 2019-01-07 CN CN201910012734.4A patent/CN109495380B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006310902A (en) * | 2005-04-26 | 2006-11-09 | Hitachi Ltd | Electronic mail service control system, apparatus, method and mail service shut down system, apparatus, and method |
US20070226300A1 (en) * | 2006-03-27 | 2007-09-27 | Suzelle Smith | System and method to prevent the sending of email messages to unqualified recipients |
JP2011141718A (en) * | 2010-01-07 | 2011-07-21 | Fujitsu Ltd | Mail management program, mail management device, and mail management method |
JP2011193155A (en) * | 2010-03-12 | 2011-09-29 | Fujitsu Ltd | Mail processing server, mail processing method, and mail processing program |
US20130047089A1 (en) * | 2011-08-21 | 2013-02-21 | Murali S. Kulathungam | System and Method to Consolidate and Update Digital Address Books |
CN103188125A (en) * | 2011-12-27 | 2013-07-03 | 腾讯科技(北京)有限公司 | E-mail system, E-mail generation method and E-mail sending method |
JP5449635B1 (en) * | 2013-09-30 | 2014-03-19 | 楽天株式会社 | E-mail transmission setting device, e-mail transmission setting method, program for e-mail transmission setting device, and storage medium |
WO2015045177A1 (en) * | 2013-09-30 | 2015-04-02 | 楽天株式会社 | Email generation device, email generation method, program for email generation device, and storage medium |
US20160301647A1 (en) * | 2013-09-30 | 2016-10-13 | Rakuten, Inc. | Email-transmission setting device, email-transmission setting method, program for email-transmission setting device, and storage medium |
US20180316752A1 (en) * | 2017-04-28 | 2018-11-01 | International Business Machines Corporation | Sender system status-aware load balancing |
CN108259553A (en) * | 2017-10-09 | 2018-07-06 | 平安科技(深圳)有限公司 | The sending method and terminal device of business mail |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110458710A (en) * | 2019-07-02 | 2019-11-15 | 平安科技(深圳)有限公司 | Request processing method, device, computer equipment and storage medium |
CN110458710B (en) * | 2019-07-02 | 2023-06-20 | 平安科技(深圳)有限公司 | Request processing method, apparatus, computer device and storage medium |
CN111210203A (en) * | 2020-01-08 | 2020-05-29 | 北京思特奇信息技术股份有限公司 | E-mail distribution method, system, medium and equipment |
CN111210203B (en) * | 2020-01-08 | 2023-08-08 | 北京思特奇信息技术股份有限公司 | E-mail distribution method, system, medium and equipment |
CN116545976A (en) * | 2023-07-03 | 2023-08-04 | 深圳欧税通技术有限公司 | Intelligent management method, system and readable storage medium for business mail |
CN116545976B (en) * | 2023-07-03 | 2024-01-19 | 深圳欧税通技术有限公司 | Intelligent management method, system and readable storage medium for business mail |
Also Published As
Publication number | Publication date |
---|---|
CN109495380B (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11115361B2 (en) | Apparatus and method for maintaining a message thread with opt-in permanence for entries | |
US8194564B2 (en) | Message filtering method | |
US9961029B2 (en) | System for reclassification of electronic messages in a spam filtering system | |
CN109495380A (en) | E-mail sending method, device, computer equipment and storage medium | |
CN108446362A (en) | Data cleansing processing method, device, computer equipment and storage medium | |
CN102916871B (en) | Information processor and control method therefor | |
CN102769687B (en) | Mass texting system and method | |
CN102413076A (en) | Spam mail judging system based on behavior analysis | |
CN110287119A (en) | A kind of automatic interface testing method and device based on python | |
CN108966158A (en) | Note transmission method, system, computer equipment and storage medium | |
US20070038710A1 (en) | Managing redundant email | |
CN110417643A (en) | Email processing method and device | |
US20200314120A1 (en) | System and method for generating heuristic rules for identifying spam emails | |
CN106095789A (en) | A kind of message subscribing managing device and method | |
CN114143282A (en) | Mail processing method, device, equipment and storage medium | |
CN110519154A (en) | Data transmission method for uplink, device, equipment and computer readable storage medium | |
CN104010068A (en) | Text message processing method and device for mobile terminal | |
CN104463556B (en) | The arrangement of Email Body reference information and discovery method and system | |
CN102656577A (en) | Electronic mail server and method for automatically generating address lists | |
CN110083782A (en) | Inspection method, device, computer equipment and the storage medium of electronic insurance policy | |
CN108920357A (en) | Operation system detection method, device, computer equipment and storage medium | |
CN110011898B (en) | Reply method and device of e-mail, storage medium and computer equipment | |
CN113905001A (en) | Automatic reply method and device, computer equipment and readable storage medium | |
CN104065617B (en) | A kind of harassing and wrecking email processing method, device and system | |
CN115037698A (en) | Data identification method and device and electronic equipment |
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 |