CN103607339B - The method and system of mail sending strategy it is automatically adjusted based on content - Google Patents
The method and system of mail sending strategy it is automatically adjusted based on content Download PDFInfo
- Publication number
- CN103607339B CN103607339B CN201310412080.7A CN201310412080A CN103607339B CN 103607339 B CN103607339 B CN 103607339B CN 201310412080 A CN201310412080 A CN 201310412080A CN 103607339 B CN103607339 B CN 103607339B
- Authority
- CN
- China
- Prior art keywords
- module
- sending
- domain name
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention provides a kind of method and system for being automatically adjusted mail sending strategy based on content.Described method includes: generated mail by mail generation module;The mail generated is stored by email storage module;Taken out mail from described email storage module by module of fetching data by being automatically adjusted rule of fetching data and the mail of taking-up is put into transmit queue;According to sending rule, the mail in described transmit queue is sent to service provider by mail sending module;And by the result sent described in e-mail analysis module analysis fetch data described in analysis result is fed back to module and described mail sending module, with fetch data described in changing based on described analysis result regular and described send regular.
Description
Technical field
The present invention relates to Internet technology, be automatically adjusted mail particularly to one based on content and send out
Send the method and system of strategy.
Background technology
Along with the development of Internet technology, increasing people starts with Internet resources.Electronics
Mail is to use one of most service on internet.In reality, a lot of enterprises have based on
Content way carries out the demand of mail transmission, such as, the Mail tracking of ecommerce, note with
Track etc..
But, there is huge business otherness to this mail demand in user, including quantity,
Ageing etc..Mail service provider sends for mail also all restrictions, including sending frequency
Rate, quantity, content restriction etc., and returned content is the most various.
It addition, as a kind of conditional resource, in addition it is also necessary to meet simultaneously that increasingly increase and
And be sent to subscriber mailbox demand in time, and to ensure that the traffic volume of entirety and success rate are also
Individual difficult point.
Therefore, under the prior art, in order to meet mail service provider legal transmission rule
Premise, meets mail traffic volume and the maximization of success rate and sending strategy flexibility simultaneously, needs
A kind of new scheme being automatically adjusted mail sending strategy based on content is provided.
Summary of the invention
According to an aspect of the present invention, it is provided that one is sent out for being automatically adjusted mail based on content
The method sending strategy, described method includes: generated mail by mail generation module;Deposited by mail
Storage module stores the mail generated;By fetch data module by be automatically adjusted fetch data rule from
Described email storage module is taken out mail and is put in transmit queue by the mail of taking-up;By mail
Mail in described transmit queue is sent to service provider according to sending rule by sending module;
And by the result sent described in e-mail analysis module analysis and take described in analysis result is fed back to
Data module and described mail sending module, to change described peek based on described analysis result
According to regular and described transmission rule, the step of described generation farther includes: added pushing away by mail
Recommend commodity and historical record that merchandise module is bought according to user, relevant commodity are added to
In the mail generated.
Preferably, the described step that the mail of taking-up is put into transmit queue farther includes: sentence
Whether the domain name of disconnected described mail is to limit domain name;If described mail is to limit domain name, then will
Described mail is put in restriction of domain queue;And if described mail is not to limit domain name, then will
Described mail is put in corresponding domain name queue.
Preferably, described mail in described transmit queue is sent to service according to sending rule
The step of provider farther includes: whether the domain name judging described mail is Batch sending;As
Really domain name is Batch sending, then from described transmit queue, batch takes out data;And such as
Really domain name is not Batch sending, then take out data from described transmit queue one by one.
Preferably, described method farther includes: judge whether from corresponding domain name queue
In get data;Without getting described data, then take out data from other queues;And
Judge whether to get data from other queues described.
Preferably, described mail in described transmit queue is sent to service according to sending rule
The step of provider farther includes: judge whether described mail uses IP to send;If it is described
Mail uses IP to send, then select IP to be transmitted with direct foundation connection based on weight;As
The most described mail is not to use IP to send, then use domain name directly to set up connection and be transmitted.
Preferably, the step of the result of the described transmission of described analysis farther includes: judge described
Send the most successful;And if it is unsuccessful judge to send the type of mistake.
Preferably, the Consideration of rule of fetching data described in includes the non-traffic volume in territory, sends shape
State, first in first out, mail priority, mail ageing at least one.
Preferably, the described Consideration sending rule includes being automatically adjusted Thread Count, automatically adjusting
Number of mail that the joint unit interval sends, it is automatically adjusted mail transmission speed, automatically selects IP and build
At least one in vertical connection.
Preferably, described send mistake type include mail not present pattern, send restricted
Type, I/O type of error and other type of errors.
According to a further aspect in the invention, it is provided that a kind of for being automatically adjusted mail based on content
The system of sending strategy, described system includes: mail generation module, described mail generation module
For generating mail;Email storage module, described email storage module is generated for storage
Mail;Fetch data module, described in fetch data module for by be automatically adjusted fetch data rule from
Described email storage module is taken out mail and is put in transmit queue by the mail of taking-up;Mail is sent out
Sending module, described mail sending module is for according to sending rule by the postal in described transmit queue
Part is sent to service provider;And e-mail analysis module, described e-mail analysis module is for dividing
Analyse the result of described transmission and fetch data module described in analysis result being fed back to and described mail is sent out
Send module, to fetch data described in changing based on described analysis result regular and described to send rule,
Described system farther includes mail and adds Recommendations module, and described mail adds Recommendations
Module, for the commodity bought according to user and historical record, adds relevant commodity to institute
In the mail generated.
Preferably, module of fetching data described in is further used for: whether judge the domain name of described mail
It is to limit domain name;If described mail is to limit domain name, then described mail is put into restriction of domain team
In row;And if described mail is not to limit domain name, then described mail being put into corresponding territory
In name queue.
Preferably, described mail sending module is further used for: the domain name judging described mail is
No is Batch sending;If domain name is Batch sending, then batch from described transmit queue
Take out data;And if domain name is not Batch sending, then from described transmit queue by
Bar takes out data.
Preferably, described mail sending module is further used for: judge whether from corresponding
Data are got in domain name queue;Without getting described data, then take out number from other queues
According to;And judge whether to get data from other queues described.
Preferably, described mail sending module is further used for: judge whether described mail uses
IP sends;If described mail uses IP to send, then select IP directly to set up based on weight
Connection is transmitted;If described mail is not to use IP to send, then domain name is used directly to set up
Connection is transmitted.
Preferably, described e-mail analysis module is further used for: judge that described transmission is the most successful;
And if it is unsuccessful judge to send the type of mistake.
Preferably, the Consideration of rule of fetching data described in includes the non-traffic volume in territory, sends shape
State, first in first out, mail priority, mail ageing at least one.
Preferably, the described Consideration sending rule includes being automatically adjusted Thread Count, automatically adjusting
Number of mail that the joint unit interval sends, it is automatically adjusted mail transmission speed, automatically selects IP and build
At least one in vertical connection.
Preferably, described send mistake type include mail not present pattern, send restricted
Type, I/O type of error and other type of errors.
The scheme of the mail sending strategy of the present invention meets under the resource limited and rule, postal
The maximization of part traffic volume, promptness and success rate and the flexibility of sending strategy.
Accompanying drawing explanation
Accompanying drawing illustrates embodiments of the invention, and for explaining the present invention's together with specification
Principle.In the accompanying drawings:
Fig. 1 is to be automatically adjusted mail sending strategy based on content according to an embodiment of the invention
The architectural framework figure of system.
Fig. 2 is the stream of the mail producer of mail dispatching centre end according to an embodiment of the invention
Cheng Tu.
Fig. 3 is the stream of the mail consumer of mail dispatching centre end according to an embodiment of the invention
Cheng Tu.
Detailed description of the invention
Explain in detail technical scheme according to an embodiment of the invention below with reference to accompanying drawings.
The mail that as used herein term " mail traffic volume " refers to be sent by platform
Quantity.The mail that term " mail transmission success rate " refers to send as used herein arrives
Number in target mailbox and the ratio of mail traffic volume.
Term " email template " refers to framework or the model of mail as used herein, and it can
To determine and to arrange some fixing content of mail.Email template generally includes fixing form
Coding, word, picture and link etc..
In described transmission system, in order to, while ensureing mail traffic volume and success rate, carry
The promptness sent for email processing jobs.Embodiments of the invention use multiple nodes, each node
Sub-module is respectively executed its duty and is realized this target.Specifically, this mail sending strategy is according to content (example
As, important email, postagram, amount many mails three types) auto-initiation node adopts
By different sending strategys;Each territory is automatically adjusted according to current non-traffic volume, number of queues
Thread Count, to take different territories;Different service IP is used according to success rate;And according to
Error result type uses different process.The mail sending strategy of the present invention ensure that important
The mail traffic volume of the promptness of mail and other mails and success rate.
Implementation preferred to the application is described in detail below in conjunction with the accompanying drawings.
Fig. 1 is to be automatically adjusted mail sending strategy based on content according to an embodiment of the invention
The architectural framework figure of system 100.As it is shown in figure 1, in an embodiment of the present invention, described
System 100 includes mail generation module 101, email storage module 103, adds Recommendations mould
Block 105, mail dispatching centre 107 and mail service provider 109.
Mail generation module 101 is for generating various different mail.The mail generated is such as
There is different contents, different priority or different domain names.This mail generation module 101
Mainly by user's various actions in electricity business website, such as register, give for change password, place an order,
Pay, produce the corresponding different email template of different mails, generate corresponding mail.Often
The promptnesses that kind template requires etc. are all different.
Email storage module 103 is for providing the persistent storage of task and mail, and provides knot
The inquiry mechanism of structure.Such as, email storage module 103 stores by mail generation module 101
The mail of the various content domain names generated.Domain name e.g. qq.com, 163.com,
126.com, yahoo.cn or jd.com etc..
Add Recommendations module 105 to come for the commodity bought according to user and historical record etc.
Add relevant commodity to often sealing mail and store in email storage module 103, to help to use
The commodity that oneself may can also require are understood at family, thus complete the preparation of Mail Contents.Such as,
Add Recommendations module 105 and can understand use by periodic scanning email storage module 103
The commodity of family purchase and historical record.
Mail dispatching centre 107 is the core component of described system 100.During mail sends
The heart 107 by module 111 of fetching data, initial configuration adjustment module 113, mail sending module 115,
Several parts compositions such as mail adjustment module 117 and e-mail analysis module 119.
As it can be seen, such as mail generation module 101, interpolation Recommendations module 105, mail
(such as, the mail in Fig. 1 generates each node described in the modules of dispatching centre 107
Node (s1, s2 ...), interpolation Recommendations node s1, s2 and mail sending node
S1, s2, s3 ... sn) it is exactly the module application of upper deployment at different ip, multinode and not
The deployment of same network segment is to prevent only one of which node from getting mail data (single-point situation),
In the case of single-point, if an application node is hung, then application is caused not use.And,
Wherein can control unessential interpolation Recommendations module 105 and chance failure occurs, if sent out
Raw fault, then mail dispatching centre 107 can (not have for the most how many minutes in the adaptation of each node
Add and recommend), it is not to wait for adding commodity, directly transmits mail.
According to embodiments of the invention, mail dispatching centre 107 is by startup according to self
The IP of sending node gets and initializes default configuration accordingly.Described IP is roughly divided into three classes,
That is, fix the high IP class of transmission priority, send the big IP class of content mail amount and common IP
Class.When the volume of mail that the priority scanning memory cell is high reaches certain threshold values more, general
The node rule of logical IP class will automatically switch to send in the rule that priority is high.When storage is single
The when that the volume of mail that first priority is high being fallen, then switch back.Single when scanning storage
When unit exists the most expired mail, such as, it is shorter than predetermined threshold when distance mail expired time
Time, the IP class that common IP class is many with amount also can send the most expired postal with help by automatic switching rule
Part.It addition, common IP class also also has thinner rule, such as, in order to prevent single-point (only
Have a node to get mail data) and too many node get same data waste resource,
Take according to ID delivery (often enclosing unique mark of the mail in storehouse), entry time, each node
Number mails etc., arrange the condition of peek;And when corresponding waiting list has been expired, rule is also
Can be automatically adjusted to economize on resources.It addition, the adjustment of rule alternatively can also manual intervention,
To reach flexibility.The rule fetched data also includes that ought inquire interpolation Recommendations does not work
Time, also can regulation rule automatically, to reach decoupling.
Module of fetching data 111 for according to fetch data rule by Mail Contents from email storage module
103 extract node.Such as, module of fetching data 111 is by being automatically adjusted rule of fetching data, so
Scan mail is carried out to be stored in transmit queue by mail afterwards according to the rule of fetching data after regulation.Institute
State fetch data rule Consideration include the non-traffic volume in territory, transmission state, first in first out,
Mail priority, mail ageing etc. at least one.The described non-traffic volume according to territory
It is automatically adjusted rule of fetching data to refer to not send Mail Contents priority higher than predetermined threshold
Time, other sending nodes automatically switch with the transmission that helps.Described automatically adjust according to transmission state
Save rule of fetching data and refer to when some domain name is restricted, or send too slow and cause queue also
When having major part not send, suspend the mail extracting this kind of domain name.Described next according to first in first out
It is automatically adjusted rule of fetching data and refers to that the sequencing entering memory cell according to mail takes out postal
Part.The described ageing rule according to mail is automatically adjusted rule of fetching data and refers to not send
Mail fast expired time the most expired mail of automatic advantage distillation.Described transmit queue can be phase
The domain name queue answered or restriction queue.
Specifically, module of fetching data 111 first determines whether which domain name mail is, this domain name is
No limited, and join corresponding domain name and wait transmit queue.Each conventional mail domain
Name, all one waiting lists of default setting initialized time, this queue can be manually
It is adjusted, such as, majority, corresponding waiting queue is occupied for domestic user Netease, QQ mailbox
The biggest.
Initial configuration adjustment module 113 is responsible for the letter of initial configuration when application node starts
Breath, as configuration each domain name corresponding send Thread Count, corresponding queue size, whether
The quantity, the transmission that use direct-connected transmission, once send are spaced, blacklist data, the bar of peek
Part (every time peek number, do not have data intermediate hold time, take which domain name, which
The data etc. of rank), the Template Information that mail is corresponding, the main frame etc. that own node is corresponding.
Mail sending module 115 scans corresponding queue according to every kind of domain name, according to sending rule
Be transmitted, will be sent by the thread limited if some domain name limits, then
Situation about sending feeds back to e-mail analysis module.The described Consideration sending rule includes automatically
Regulation Thread Count, be automatically adjusted the unit interval send number of mail, be automatically adjusted mail send
Speed, at least one automatically selected during IP foundation connects.Described be automatically adjusted Thread Count rule
Refer to when inquire certain class domain name do not send mail too many time, Thread Count will be increased;And when looking into
Ask to certain class domain name do not send mail very little time, thread will be reduced.Described it is automatically adjusted list
The number of mail that bit time sends refers to that unit interval ought be the most automatically increased or decreased to be sent
Number of mail.The described mail transmission speed that is automatically adjusted refers to automatically increase as required add deduct
Few mail transmission speed.The described IP of automatically selecting is to add up according to weight, described weight
Based on setting up Connection Time, success and the frequency of failure, transmission state (such as, success or failure),
Such as, when setting up connection failure number of times and being too much with the frequency of failure, then the probability of this IP is selected
Smaller.
Preferably, mail sending module 115 can scan corresponding queue and acquiescence team termly
Row or restriction queue, taken out mail, sent out by mail by SMTP (simple mail transmission agreement)
Deliver to mail service provider, and the situation of transmission is fed back to e-mail analysis module 119.Described
Mail service provider e.g. Tengxun, Netease, Google, Jingdone district etc..
Mail adjustment module 117 is come according to the amount of the domain name amount not sent, the every day of statistics domain name
Adjust transmission Thread Count and transmit queue, transmission speed and the IP selection etc. of domain name.When mail is sent out
Send module 115 to scan corresponding queue when having data, just trigger transmission and be transmitted, then
The data fed back according to e-mail analysis module 119 determine whether adjust transmission speed, with
And use which IP to be attached setting up and/or sending, and connect setting up and send unsuccessfully
Situation passes to e-mail analysis module 119.
E-mail analysis module 119 is used for sending situation sample and collects, analyzes, and will analyze
Result feeds back to module 111 of fetching data, mail sending module 115, thus changes rule of fetching data
Regular with sending.Such as, e-mail analysis module 119 is according to situation about passing over, statistical
Separate out the quantity forwarded that each domain name is per minute, if reach predetermined threshold value.If it is determined that
Through meeting or exceeding predetermined threshold value, then reduce transmission speed;According to set up connect and send
Success comes domain name IP corresponding to statistical precipitation, each IP successful probability size with the frequency of failure,
Then weight is given, when selecting IP next time, it is possible to choose the IP that success rate is high, to change
It is apt to send, economize on resources;And according to sending the mistake unsuccessfully coming that mail service provider is returned
Add up, to decide whether that also needing to retry, retry is also to be to wait for next time at once by mistake
And retry and whether limited, and record new type of error, in order to sort out, increase new
Strategy.
Such as, the type of described mistake includes mail not present pattern, sends Limit Type, I/O
Type of error and other type of errors etc..Especially, mail not present pattern is likely due to
Email address mistake and cause send mistake, in this case, due to by domain name mapping it
After cannot find corresponding main frame or server, so mail cannot send, therefore
It is made without retrying.Transmission Limit Type is likely due to mail attribute and does not meets recipient
People arrange or the restriction of mail receiving server and cause send mistake, such as recipient mailbox space is
Filtrating mail function full, that mail size limits beyond mail receiving server, recipient is arranged,
In this case, the possibility being successfully transmitted due to existence, it is therefore desirable to attempt retrying and arranging
Number of retries.I/O type of error is likely due to hardware or network failure and causes sending mistake,
Such as sending server, mail receiving server, domain name resolution server break down or network connects
Unstable etc., in such a case, it is possible to carry out retrying being successfully transmitted afterwards fixing a breakdown,
And number of retries is set.Preferably, retry described in and can be spaced fixed time interval, it is possible to
With the time interval of increments to economize on resources.
As it is shown in figure 1, according to embodiments of the invention, mail dispatching centre 107 is internal to be used
The producer, the transmission structure of consumer.E-mail analysis module 119 is sent by statistical analysis
To the situation of mail service, dynamically adjust the rule fetched data and the rule of transmission, to improve
The success rate that sends out via sending module 115 of Mail Contents that module of fetching data 111 obtains with
Promptness, and economize on resources.
Fig. 2 is the stream of the mail producer of mail dispatching centre end according to an embodiment of the invention
Journey Figure 200.
As in figure 2 it is shown, in step S201, mail dispatching centre 107 initial configuration, to take
Obtain rule accordingly.Described initialization includes automatically classifying according to node IP;Domain name queue, line
Journey default initialization;And whether node starts monitoring, is automatically adjusted thread etc..Described accordingly
Rule include default rule, described default rule belongs in above-mentioned three classes based on node self IP
Which kind of, that such as include that content prioritization is high, that inner capacities is big, other general category etc..
In step S203, module of fetching data 111 is fetched data according to different rules.Described difference
Rule be e.g. automatically adjusted after rule, limit domain name (during transmission including eliminating
Limit according to the factor such as success rate, artificially add restriction), the domain name of queue full, taken amount many,
Take priority high, take the most expired, entry time order etc..
In step S205, inquiry database (DB), obtain data, such as, according to initialization
The conditions such as configuration module 103 initialized condition mail id delivery, quantity, priority take mail
Data.Then, in step S207, it is judged that whether acquired data are to limit domain name.If
It is then to join restriction domain name queue in step S209, to wait that special thread sends.As
Fruit not, then joins the domain name queue of correspondence in step S211.If there is no corresponding territory
Name team, then join default queue.
Fig. 3 is the stream of the mail consumer of mail dispatching centre end according to an embodiment of the invention
Journey Figure 30 0.
As it is shown on figure 3, in step S301, initialize time domain according to initial configuration module 103
Name correspond to send thread and storage queue accordingly, then sends the storage that thread scans is corresponding
Queue peek sends, and described sends the most special restriction domain name thread of thread, domain name pair
Answer thread.Then, in step S303, it may be judged whether get data from corresponding transmit queue.
If getting data from corresponding transmit queue, then this flow process proceeds to step S309.As
Fruit does not get data, then fetch data inside other queues in step S305, such as can be from
Fetch data inside default queue or restriction queue, then judge whether from other teams in step S307
Row get data.If not getting data from other queues in step S307, then this flow process is returned
Returning step S301, repeating above step until taking out data.If in step S307 from it
He gets data at queue, then this flow process proceeds to step S309.
Preferably, step S301 farther includes to judge whether domain name is Batch sending.If territory
Name is Batch sending, obtains data from corresponding transmit queue the most in batch fashion.If domain name
It not Batch sending, then in the way of extracting one by one, obtain data from corresponding transmit queue.
In step S309, it is judged that this domain name mail is to use IP to send or domain name transmission.If
It is to use IP to send, then from the ip queue that the domain name of storage is corresponding, selects phase in step S311
The Target IP answered is directly connected to set up in step S317.If using domain name to send,
Then use domain name directly to set up connection in step S317 in step S315.Preferably, step
Rapid S311 further include in step S313 according to success rate, connection failure rate obtain with
The IP that domain name is corresponding.Preferably, start to record the Connection Time when step S317 is set up and connected.
Alternatively, after setting up connection in step S317, it may be judged whether need regulation to send speed
Degree.If it is required, then first regulation transmission speed is transmitted in step S319 the most again.
If it is not required, then be directly transmitted in step S319.Then, step S319 it
After, in step S321, judge that transmission is the most successful.If sending successfully, then in step S323,
Transfer mail analyzes the record of module 119, and is updated successfully state, increases successfully record, from
And this flow process terminates.Preferably, connect duration in step S323 record, send state (such as,
Successfully, make mistakes etc.) to carry out statistical analysis.
If judging that in step S321 transmission is unsuccessful, then in step S325 according to return
Mistake comes which kind of type misjudgment belongs to.The type of described mistake such as includes that mail does not exists
Type, transmission Limit Type, I/O type of error and other type of error etc..If in step
Rapid S325 judges that the type of described mistake belongs to mail not present pattern, then this flow process enters step
S327.If judging that the type of described mistake belongs to transmission Limit Type in step S325, then should
Flow process enters step S331.If it is wrong to judge that the type of described mistake belongs to I/O in step S325
Type by mistake, then this flow process enters step S337.If judge the class of described mistake in step S325
Type belongs to other type of error, then this flow process enters step S343.
After flow process enters step S327, owing to mistake belongs to mail not present pattern, so
Need not retry, thus failed in step S329 directly more new record, addition blacklist, and to
E-mail analysis module 119 increases successfully record, thus this flow process terminates.In step S329
Record that make mistakes, successful contributes to analytic statistics.
After flow process enters step S331, owing to mistake belongs to transmission Limit Type, so
Mail is passed to e-mail analysis module 119 by step S333, and marks domain name content.Then,
In step S335, e-mail analysis module feedback returns other module, and notify to fetch data module 111
Stop extracting the mail of this content under this domain name, be transmitted limiting, and be renewed back to storehouse wait
Send next time and record unsuccessfully.When more than repeating, operation reaches maximum reattempt times, then in step
S341 is updated to failure, and increases failure record.In step S341 make mistakes, successfully
Record contributes to analytic statistics.
After flow process enters step S337, owing to mistake belongs to I/O type of error, so
Step S339 is transmitted retrying, i.e. reusing at once and connect to retransmit once, flow process returns
To step S319.It addition, when retry reach maximum reattempt times time, this flow process enter step S341.
After flow process enters step S343, owing to mistake belongs to other type of error, so should
Flow process proceeds to step S335, is renewed back to storehouse, misregistration type, and wait and retries until reaching
To maximum reattempt times.Reach maximum reattempt times if retried, then this flow process enters step
S341。
The most in actual applications, it should can be suspended by manual intervention temporarily or cancel
Etc., the method described in above-described embodiment provides one and sends flexibly, as newly increased
One domain name, needs single thread and queue;And manually adjust the Thread Count of certain domain name
With queue size;Manually adjust maximum reattempt times;Adjust the quantity forwarded of restriction per minute;
Suspend the transmission of certain domain name;Certain domain name is set to direct-connected IP send;Certain domain name is set to
Batch sending;And the quantity of Batch sending is set;The interval every time fetched data is set;Limit
The transmission speed of domain name;Manually cancel certain mail under certain domain name or increase under certain domain name
The transmission restriction etc. of certain mail.
Further, since mail service provider provides service a lot, have a lot of uncertain because of
Element, if any the service IP under different network environments, also has external mail service provider, net
Network speed shakes the biggest and each mail service provider various different limits to instantaneous transmission rate
System, the speed of sending node often cannot be effectively ensured.Based on above-mentioned flow process, in order to further
The mail transmitting capacity of raising system and transmission success rate, the IP of sending node the most also to select
It is placed on different networks, different machine rooms.And, if sent in the case of network busy
Email, then should be appropriately arranged with longer server timeout value, in order to improves mail and sends
Success rate.If using multiple stage to send server composition collection pocket transmission, then should be at each
Send and on link, carry out transmitted traffic equiblibrium mass distribution, to improve resource utilization.
Therefore, being automatically adjusted mail sending strategy based on content and possess following according to the present invention
Advantage: when volume of mail is big, it is ensured that the promptness of important email, such as, postal during sales promotion
The when that part amount being many, some affects other domain names in blocking;Mistake is used to retry and according to class
Type is different and processing method is different, thus reduces the wasting of resources;Difference according to each service provider
The success rate of IP, uses different hit rates, thus increases success rate;And be easy to follow the tracks of and
Whether inquiry specific mail sends successfully and failure cause.
In sum, the technical scheme described in the present embodiment is used to achieve based on content automatic
Regulation mail sending strategy, this strategy can effectively meet mail along with web site traffic order volume
Increase, the timely demand that sends of volume of mail increases therewith, priority is high mail, simultaneously its
Its mail also is able to send successfully, and ensure that in the range of mail service provider limits
Traffic volume and success rate.
Above-described embodiment is only the preferred embodiments of the present invention, is not limited to the present invention.Right
It should be apparent to those skilled in the art that in the situation without departing from the spirit and scope of the present invention
Under, embodiments of the invention can be carried out various modifications and changes.Therefore, the invention is intended to
Contain fall into all such amendment within the scope of the present invention as defined by the appended claims or
Modification.
Claims (18)
1. for the method being automatically adjusted mail sending strategy based on content, described method bag
Include:
Mail is generated by mail generation module;
The mail generated is stored by email storage module;
Taken out from described email storage module by being automatically adjusted rule of fetching data by module of fetching data
The mail of taking-up is also put in transmit queue by mail;
According to sending rule, the mail in described transmit queue is sent to clothes by mail sending module
Business provider;And
By the result sent described in e-mail analysis module analysis and take described in analysis result is fed back to
Data module and described mail sending module, to change described peek based on described analysis result
According to regular and described transmission rule;
The step of described generation farther includes: added Recommendations module according to user by mail
Relevant commodity are added in generated mail by the commodity bought and historical record.
Method the most according to claim 1, wherein, described being put into by the mail of taking-up is sent out
The step sending queue farther includes:
Whether the domain name judging described mail is to limit domain name;
If described mail is to limit domain name, then described mail is put in restriction of domain queue;With
And
If described mail is not to limit domain name, then described mail is put into corresponding domain name queue
In.
Method the most according to claim 1, wherein, described according to sending rule by described
Mail in transmit queue is sent to the step of service provider and farther includes:
Whether the domain name judging described mail is Batch sending;
If domain name is Batch sending, then from described transmit queue, batch takes out data;
And
If domain name is not Batch sending, then from described transmit queue, take out data one by one.
Method the most according to claim 2, farther includes:
Judge whether to get data from corresponding domain name queue;
Without getting described data, then take out data from other queues;And
Judge whether to get data from other queues described.
5. according to the method described in claim 1 or 3, wherein, described according to sending regular general
Mail in described transmit queue is sent to the step of service provider and farther includes:
Judge whether described mail uses IP to send;
If described mail uses IP to send, then select IP with the direct company of foundation based on weight
Connect and be transmitted;
If described mail is not to use IP to send, then uses domain name directly to set up connection and carry out sending out
Send.
Method the most according to claim 1, wherein, the result of the described transmission of described analysis
Step farther include:
Judge that described transmission is the most successful;And
If it is unsuccessful judge to send the type of mistake.
Method the most according to claim 1, wherein, described in fetch data rule consideration because of
Element include the non-traffic volume in territory, transmission state, first in first out, mail priority, mail time
At least one in effect property.
Method the most according to claim 1, wherein, the described Consideration sending rule
Including be automatically adjusted Thread Count, be automatically adjusted the unit interval send number of mail, be automatically adjusted
Mail transmission speed, at least one automatically selected during IP foundation connects.
Method the most according to claim 6, wherein, the described type sending mistake includes
Mail not present pattern, transmission Limit Type, I/O type of error and other type of errors.
10. for being automatically adjusted a system for mail sending strategy, described system based on content
Including:
Mail generation module, described mail generation module is used for generating mail;
Email storage module, the mail that described email storage module is generated for storage;
Fetch data module, described in fetch data module for by being automatically adjusted rule of fetching data from institute
State email storage module take out mail and put in transmit queue by the mail of taking-up;
Mail sending module, described mail sending module is for according to sending rule by described transmission
Mail in queue is sent to service provider;And
E-mail analysis module, described e-mail analysis module is for analyzing the result of described transmission and inciting somebody to action
Analysis result is fetched data module and described mail sending module described in feeding back to, with based on described point
Analysis result change described in fetch data regular and described send regular;
Mail add Recommendations module, described mail add Recommendations module for according to
Relevant commodity are added in generated mail by the commodity of family purchase and historical record.
11. systems according to claim 10, wherein, described in module of fetching data further
For:
Whether the domain name judging described mail is to limit domain name;
If described mail is to limit domain name, then described mail is put in restriction of domain queue;With
And
If described mail is not to limit domain name, then described mail is put into corresponding domain name queue
In.
12. systems according to claim 10, wherein, described mail sending module enters one
Step is used for:
Whether the domain name judging described mail is Batch sending;
If domain name is Batch sending, then from described transmit queue, batch takes out data;
And
If domain name is not Batch sending, then from described transmit queue, take out data one by one.
13. systems according to claim 11, wherein, described mail sending module enters one
Step is used for:
Judge whether to get data from corresponding domain name queue;
Without getting described data, then take out data from other queues;And
Judge whether to get data from other queues described.
14. according to the system described in claim 10 or 12, and wherein, described mail sends mould
Block is further used for:
Judge whether described mail uses IP to send;
If described mail uses IP to send, then select IP with the direct company of foundation based on weight
Connect and be transmitted;
If described mail is not to use IP to send, then uses domain name directly to set up connection and carry out sending out
Send.
15. systems according to claim 10, wherein, described e-mail analysis module enters one
Step is used for:
Judge that described transmission is the most successful;And
If it is unsuccessful judge to send the type of mistake.
16. systems according to claim 10, wherein, described in fetch data rule consideration
Factor includes the non-traffic volume in territory, transmission state, first in first out, mail priority, mail
At least one in ageing.
17. systems according to claim 10, wherein, described send rule consideration because of
Element includes being automatically adjusted Thread Count, is automatically adjusted number of mail that the unit interval sends, automatically adjusts
Joint mail transmission speed, at least one automatically selected during IP foundation connects.
18. systems according to claim 15, wherein, the described type bag sending mistake
Include mail not present pattern, send Limit Type, I/O type of error and other type of errors.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310412080.7A CN103607339B (en) | 2013-09-11 | 2013-09-11 | The method and system of mail sending strategy it is automatically adjusted based on content |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310412080.7A CN103607339B (en) | 2013-09-11 | 2013-09-11 | The method and system of mail sending strategy it is automatically adjusted based on content |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103607339A CN103607339A (en) | 2014-02-26 |
CN103607339B true CN103607339B (en) | 2016-08-17 |
Family
ID=50125539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310412080.7A Active CN103607339B (en) | 2013-09-11 | 2013-09-11 | The method and system of mail sending strategy it is automatically adjusted based on content |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103607339B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683581A (en) * | 2018-04-10 | 2018-10-19 | 平安科技(深圳)有限公司 | Mail triggering method and device, electronic equipment and computer readable storage medium |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104579922A (en) * | 2014-12-26 | 2015-04-29 | 乐视网信息技术(北京)股份有限公司 | Mail sending method and device |
CN106488416B (en) * | 2015-08-26 | 2020-02-07 | 中国联合网络通信集团有限公司 | Industry short message sending method and device |
CN105263128B (en) * | 2015-11-27 | 2019-08-30 | 北京奇虎科技有限公司 | A kind of method and apparatus of Batch sending short message |
CN105429733B (en) * | 2015-11-27 | 2019-01-01 | 北京奇虎科技有限公司 | A kind of message scheduling sending method and device |
CN106779702A (en) * | 2016-11-28 | 2017-05-31 | 努比亚技术有限公司 | Method of payment and payment system |
CN108449428A (en) * | 2018-04-23 | 2018-08-24 | 深圳市分期乐网络科技有限公司 | A kind of method for connecting network, device, server and storage medium |
CN108880994B (en) * | 2018-07-02 | 2021-05-25 | 网宿科技股份有限公司 | Method and device for retransmitting mails |
CN109639471A (en) * | 2018-12-03 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of method and system of automatic transmission Email |
CN110852051B (en) * | 2019-10-15 | 2023-10-27 | 上海腾道信息技术有限公司 | Mail template optimization method and generation system |
CN110995542B (en) * | 2019-12-16 | 2022-04-22 | 金蝶智慧科技(深圳)有限公司 | Network state detection method, system and related equipment |
CN111464426B (en) * | 2020-03-23 | 2022-04-26 | 论客科技(广州)有限公司 | Method, device and storage medium for automatically adjusting mail delivery strategy |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924694A (en) * | 2009-06-10 | 2010-12-22 | 株式会社日立制作所 | Mail server system and congestion control method |
CN102546466A (en) * | 2010-12-24 | 2012-07-04 | 佳能It解决方案股份有限公司 | Information processing device, information processing method and computer program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7219148B2 (en) * | 2003-03-03 | 2007-05-15 | Microsoft Corporation | Feedback loop for spam prevention |
-
2013
- 2013-09-11 CN CN201310412080.7A patent/CN103607339B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924694A (en) * | 2009-06-10 | 2010-12-22 | 株式会社日立制作所 | Mail server system and congestion control method |
CN102546466A (en) * | 2010-12-24 | 2012-07-04 | 佳能It解决方案股份有限公司 | Information processing device, information processing method and computer program |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683581A (en) * | 2018-04-10 | 2018-10-19 | 平安科技(深圳)有限公司 | Mail triggering method and device, electronic equipment and computer readable storage medium |
CN108683581B (en) * | 2018-04-10 | 2020-11-20 | 平安科技(深圳)有限公司 | Mail triggering method and device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103607339A (en) | 2014-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103607339B (en) | The method and system of mail sending strategy it is automatically adjusted based on content | |
US20230388263A1 (en) | Managing electronic messages with a message transfer agent | |
EP3669525B1 (en) | Subscription based event notifications | |
US7509382B1 (en) | System and method to deflect email threads to a blogging system | |
US7640313B2 (en) | Adaptive junk message filtering system | |
RU2600102C2 (en) | Sorting electronic information exchange | |
WO2000033203A1 (en) | An electronic communication delivery confirmation and verification system | |
AU2004216772A2 (en) | Feedback loop for spam prevention | |
WO2000049776A1 (en) | Method and apparatus for proxying and filtering electronic mail | |
JP2006277661A (en) | Information distribution device and information distribution method | |
JP5121828B2 (en) | E-mail processing apparatus, e-mail processing method, e-mail processing program, and e-mail processing system | |
CN106656731A (en) | EDM (Email Direct Marketing) mail sending method and device | |
CN103517225A (en) | Multimedia message retry method and apparatus thereof | |
US20090144378A1 (en) | Systems, methods and computer program products for the delivery of email text messages and image attachments to an iptv display device | |
US20080061934A1 (en) | High capacity campaign system | |
CN109756567A (en) | A kind of cross-domain task schedule breaker point continuous transmission method | |
US9473668B2 (en) | Distributed storage and processing of mail image data | |
Stuckey et al. | The impact of the Defense Data Network on Naval communications during the 1980s | |
JP2003162485A (en) | Browsing management method of specific document via electronic mail and recording medium recording therein browsing management program of specific document via electronic mail |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |