CN108880994A - A kind of method and apparatus for retransmitting mail - Google Patents
A kind of method and apparatus for retransmitting mail Download PDFInfo
- Publication number
- CN108880994A CN108880994A CN201810709274.6A CN201810709274A CN108880994A CN 108880994 A CN108880994 A CN 108880994A CN 201810709274 A CN201810709274 A CN 201810709274A CN 108880994 A CN108880994 A CN 108880994A
- Authority
- CN
- China
- Prior art keywords
- targeted mails
- failure cause
- targeted
- return 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
-
- 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/21—Monitoring or handling of messages
- H04L51/23—Reliability checks, e.g. acknowledgments or fault reporting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method and apparatus for retransmitting mail, belong to technical field of data processing.The method includes:Receipt mail server detects the field that reports an error that mail sends failure whether is carried in the return information to the return information of targeted mails;If carrying the field that reports an error in the return information, the e-mail messages of the targeted mails are recorded, and the transmission failure cause of the targeted mails is determined based on the return information;The targeted mails are retransmitted according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages.Using the present invention, the repeating transmission success rate of mail can be improved.
Description
Technical field
The present invention relates to technical field of data processing, in particular to a kind of method and apparatus for retransmitting mail.
Background technique
Email (hereinafter referred to as mail) is a kind of communication mode using electronically offer information exchange, can
To transmit the much informations such as text, image or sound, it is widely used in various management systems.Background management system can pass through
The various information generated when executing management role are sent to user by mail.
For sending the identifying code for Website login, user can choose in the login interface of website and pass through electronics
The identifying code of mailbox reception login.In this way, the background management system of website can receive the logging request of the user, then
It can send the identifying code needed for logging in by mail the E-mail address of user based on the mailbox message that user reserves.It
Afterwards, user can find the mail for carrying above-mentioned identifying code from E-mail address, so as in the login interface of website
The identifying code is inputted, with Website login.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The number of mail that background management system is sent is huge, tends not to save the Mail Contents of mail, works as hair
When certain existing mail sends failure, since the product process of the mail is difficult to reappear, background management system is caused to be difficult to get this
The e-mail messages of mail can not retransmit the mail based on e-mail messages.Also, even if getting the mail of the mail
Breath, background management system also only mechanically retransmit the mail, it is easy to the mail be caused to send failure again.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method and apparatus for retransmitting mail.Institute
It is as follows to state technical solution:
In a first aspect, a kind of method for retransmitting mail is provided, the method includes:
Receipt mail server detects to the return information of targeted mails and whether carries mail hair in the return information
Send the field that reports an error of failure;
If carrying the field that reports an error in the return information, the e-mail messages of the targeted mails are recorded, and
The transmission failure cause of the targeted mails is determined based on the return information;
According to the corresponding default retransmission policy of transmission failure cause and the e-mail messages to the targeted mails into
Row is retransmitted.
Further, the transmission failure cause that the targeted mails are determined based on the return information, including:
If carrying the unknown status code of address of the addressee in the return information, it is determined that the hair of the targeted mails
Sending failure cause is that address of the addressee is unknown;
Alternatively, if carrying the status code of SMTP authentication information mistake in the return information, it is determined that the target
The transmission failure cause of mail is SMTP authentication information mistake;
Alternatively, if carrying the inaccessible miscue message of server in the return information, it is determined that the mesh
The transmission failure cause for marking mail is that server is unreachable;
Alternatively, if status code or miscue message are not carried in the return information, it is determined that the target postal
The transmission failure cause of part is unknown error.
Further, it is described according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages to institute
Targeted mails are stated to be retransmitted, including:
If the transmission failure cause is that address of the addressee is unknown, it is determined that unknown targeted recipient address generates
The first alarm command of targeted recipient address is modified, and after receiving modified targeted recipient address, based on described
The targeted mails are retransmitted to modified targeted recipient address by e-mail messages;
Alternatively, generating modification SMTP authentication information if the transmission failure cause is SMTP authentication information mistake
Second alarm command, and after receiving modified SMTP authentication information, it is based on the e-mail messages and modified SMTP
Authentication information retransmits the targeted mails;
Alternatively, being based on the mail in default retransmission time if the transmission failure cause is that server is unreachable
Information retransmits the targeted mails.
Further, it is described according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages to institute
Targeted mails are stated to be retransmitted, including:
If the transmission failure cause is unknown error, the third alarm that generation carries the return information refers to
It enables, and after receiving reissue commands, the targeted mails is retransmitted based on the e-mail messages.
Further, it is described according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages to institute
It states after targeted mails are retransmitted, further includes:
If the sending times of the targeted mails are more than preset times, the third for carrying the return information is generated
Alarm command, and after receiving reissue commands, the targeted mails are retransmitted based on the e-mail messages.
Second aspect, provides a kind of device for retransmitting mail, and described device includes:
Detection module, for receipt mail server to the return information of targeted mails, detecting in the return information is
The no field that reports an error for carrying mail and sending failure;
Determining module, if recording the targeted mails for carrying the field that reports an error in the return information
E-mail messages, and determine based on the return information transmission failure cause of the targeted mails;
Module is retransmitted, is used for according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages to institute
Targeted mails are stated to be retransmitted.
Further, the determining module is also used to:
If carrying the unknown status code of address of the addressee in the return information, it is determined that the hair of the targeted mails
Sending failure cause is that address of the addressee is unknown;
Alternatively, if carrying the status code of SMTP authentication information mistake in the return information, it is determined that the target
The transmission failure cause of mail is SMTP authentication information mistake;
Alternatively, if carrying the inaccessible miscue message of server in the return information, it is determined that the mesh
The transmission failure cause for marking mail is that server is unreachable;
Alternatively, if status code or miscue message are not carried in the return information, it is determined that the target postal
The transmission failure cause of part is unknown error.
Further, the repeating transmission module is also used to:
If the transmission failure cause is that address of the addressee is unknown, it is determined that unknown targeted recipient address generates
The first alarm command of targeted recipient address is modified, and after receiving modified targeted recipient address, based on described
The targeted mails are retransmitted to modified targeted recipient address by e-mail messages;
Alternatively, generating modification SMTP authentication information if the transmission failure cause is SMTP authentication information mistake
Second alarm command, and after receiving modified SMTP authentication information, it is based on the e-mail messages and modified SMTP
Authentication information retransmits the targeted mails;
Alternatively, being based on the mail in default retransmission time if the transmission failure cause is that server is unreachable
Information retransmits the targeted mails.
Further, the repeating transmission module is also used to:
If the transmission failure cause is unknown error, the third alarm that generation carries the return information refers to
It enables, and after receiving reissue commands, the targeted mails is retransmitted based on the e-mail messages.
Further, the repeating transmission module is also used to:
If the sending times of the targeted mails are more than preset times, the third for carrying the return information is generated
Alarm command, and after receiving reissue commands, the targeted mails are retransmitted based on the e-mail messages.
The third aspect, provides a kind of management equipment, and the management equipment includes processor and memory, the memory
In be stored at least one instruction, at least one section of program, code set or instruction set, at least one instruction, described at least one
Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize repeating transmission mail as described in relation to the first aspect
Method.
Fourth aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium
Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or
The method that instruction set is loaded by processor and executed to realize repeating transmission mail as described in relation to the first aspect.
Technical solution bring beneficial effect provided in an embodiment of the present invention is:
In the present embodiment, by detecting whether received mail server carries the word that reports an error to the return information of mail
Section, can determine whether mail sends failure, can be to the shape carried in above-mentioned return information when determining that mail sends failure
State code or prompting message are analyzed, to determine the transmission failure cause of mail, and then can be former based on determining transmission failure
Because of corresponding default retransmission policy, mail is retransmitted, so as to targetedly retransmit to mail, improves mail
Repeating transmission success rate, avoid send failure cause it is unresolved when blindly mail is retransmitted, reduce system resource waste.In addition,
After determining that mail sends failure, the e-mail messages of mail can be recorded in time, to both may not need by reappearing mail
Product process obtain the e-mail messages of mail, and may not need storage mail for a long time, reduce management equipment memory space
Utilization rate.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of method flow diagram for retransmitting mail provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram for retransmitting mail provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram for retransmitting mail provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of management equipment provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
The embodiment of the invention provides a kind of methods for retransmitting mail, and the executing subject of this method can be back-stage management system
Management equipment in system, background management system can be the management system for operating in all kinds of website backstages, can be deployed in net
It stands the computer room of the owner, background management system can manage and maintain every function of website based on pre-set management rule
Can, such as the functions such as subscriber information management, log recording, database edits.Management equipment can be certain service in computer room
The service cluster of device or multiple servers composition can execute each generic task of background management system generation, such as mail hair
It send, the tasks such as data statistics.May include processor, memory, transceiver in above-mentioned management equipment, processor can be used for into
The processing of mail is retransmitted in the following processes of row, memory can be used for storing the data and generation needed in following treatment processes
Data, transceiver can be used for sending and receiving the related data in following treatment processes.
It is detailed to a kind of process flow progress for the method for retransmitting mail shown in FIG. 1 below in conjunction with specific embodiment
Thin explanation, content can be as follows:
Step 101:Receipt mail server detects in return information whether carry postal to the return information of targeted mails
Part sends the field that reports an error of failure.
In an implementation, background management system can push various information, such as user's birthday to multiple users by mail
The information such as prompting, last word information, consumer record.When needing to send information to user, background management system be can be generated
Corresponding mail sends task, and mail transmission task is then distributed to management equipment and is executed.In this way, management equipment can
Task is sent to receive the mail, can then proceed in the above- mentioned information of task carrying with the addressee for receiving the information
Location generates corresponding mail (can be described as targeted mails), and the targeted mails is sent to mail server.Later, mail takes
Business device can send the targeted mails to according to the address of the addressee in targeted mails the E-mail address of user, meanwhile, mail
The relevant information (can be described as return information) of transmission state to targeted mails can also be sent to management equipment by server,
In, return information can wrap and send normal normal field containing mark mails, mark mails send the field that reports an error to fail, each
The unknown status code of kind status code or prompting message etc., such as normal field normal, the field that reports an error error, mark addressee.This
Sample, management equipment can receive the return information to targeted mails of mail server transmission, so after issuing targeted mails
The field that reports an error that management equipment can send failure by whether carrying mail in detection return information afterwards, to judge target postal
Whether part sends failure.
Step 102:If carrying the field that reports an error in return information, the e-mail messages of targeted mails are recorded, and are based on
Return information determines the transmission failure cause of targeted mails.
In an implementation, management equipment can temporarily store targeted mails, after sending targeted mails if target
Mail is sent successfully, then management equipment can detect normal field in return information, and then management equipment can will be interim
The targeted mails of storage are deleted;If targeted mails send failure, management equipment is detected in return information and is reported an error
Field, and then management equipment can completely be recorded the e-mail messages of targeted mails based on the targeted mails temporarily stored
Come, such as records the mail matter topics, message body, address of the addressee mail of targeted mails by the way of Base64 encoding and decoding
Information, in order to the subsequent retransmission process to targeted mails.After the e-mail messages to be recorded for completing targeted mails, management equipment
The targeted mails temporarily stored can be deleted, to both may not need storage targeted mails for a long time, reduce management and set
The utilization rate of standby memory space, and may not need in mail of the product process by reappearing targeted mails to obtain targeted mails
Hold.It should be noted why only record targeted mails e-mail messages, without being to continue with storage targeted mails, be because
The data volume of the e-mail messages of record wants small relative to the data volume of targeted mails itself, can further decrease management equipment and deposit
The utilization rate in space is stored up, and management equipment can easily regenerate targeted mails by the e-mail messages of record.Meanwhile
Management equipment can analyze the other information in return information in addition to the field that reports an error, and then can determine targeted mails
Send failure cause.
Optionally, management equipment can based in return information status code or prompting message determine the transmissions of targeted mails
Failure cause, correspondingly, the part processing of step 102 can be as follows:If it is unknown to carry address of the addressee in return information
Status code, it is determined that the transmission failure cause of targeted mails is that address of the addressee is unknown;Alternatively, if being carried in return information
There is the status code of SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer protocol) authentication information mistake, then
The transmission failure cause for determining targeted mails is SMTP authentication information mistake;Alternatively, if carrying server in return information
Inaccessible miscue message, it is determined that the transmission failure cause of targeted mails is that server is unreachable;Alternatively, if returning
Status code or miscue message are not carried in information, it is determined that the transmission failure cause of targeted mails is unknown error.
In an implementation, when mail sends failure, mail server can will carry the shape of mark transmission failure cause
The return information of state code or prompting message is sent to management equipment.In this way, management equipment can determine target based on return information
The transmission failure cause of mail.Specifically, if management equipment detects that carry address of the addressee in return information unknown
Status code, such as the status code 550 that mail server generallys use, which can be identified since address of the addressee is not deposited
Or address of the addressee fill in that address of the addressee caused by mistake is unknown, then management equipment can determine that the transmission of targeted mails is lost
It loses the reason is that address of the addressee is unknown.If management equipment detects the shape for carrying SMTP authentication information mistake in return information
State code, such as the status code 535 that mail server generallys use, which can be identified since SMTP authentication information is arranged
SMTP authentication information mistake caused by mistake, then management equipment can determine that the transmission failure cause of targeted mails is SMTP certification
Information errors;If management equipment, which detects, carries the inaccessible miscue message of server in return information, such as
Cannot connect to relay host (server is unreachable), then management equipment can determine that the transmission of targeted mails is lost
It loses the reason is that server is unreachable.Further, if management equipment, which detects, does not carry status code or mistake in return information
Accidentally prompting message, then the transmission failure cause of targeted mails can be recorded as unknown error by management equipment.
Step 103:Weight is carried out to targeted mails according to the corresponding default retransmission policy of failure cause and e-mail messages are sent
Hair.
In an implementation, technical staff can preset corresponding retransmission policy for different transmission failure causes, then
The default retransmission policy set is deployed in management equipment.In this way, management equipment is in the transmission failure that targeted mails have been determined
After reason, available to arrive the corresponding default retransmission policy of the transmission failure cause, then management equipment can be pre- according to this
If retransmission policy, in conjunction with the e-mail messages of record, targeted mails are retransmitted.
Optionally, when sending failure cause is that addressee is unknown, the processing of step 103 can be as follows:It is lost if sent
It loses the reason is that address of the addressee is unknown, it is determined that unknown targeted recipient address generates the of modification targeted recipient address
One alarm command, and after receiving modified targeted recipient address, targeted mails are retransmitted to based on e-mail messages and are repaired
Targeted recipient address after changing.
In an implementation, in the case of sending failure cause is that address of the addressee is unknown, mail server can returned
The unknown status code of address of the addressee and corresponding address of the addressee are carried in information.In this way, management equipment is determining target
The transmission failure cause of mail can be determined the address of the addressee carried in above-mentioned return information after address of the addressee is unknown
For unknown targeted recipient address, then the first alarm command of modification targeted recipient address is can be generated in management equipment,
It is modified with notification technique personnel to targeted recipient address.Technical staff can manage after receiving above-mentioned notice
It modifies in equipment to targeted recipient address, after the completion of to be modified, management equipment can receive modified target and receive
Part people address, then management equipment can regenerate targeted mails based on the e-mail messages of above-mentioned record, and by targeted mails
Modified targeted recipient address is retransmitted to avoid so as to targetedly retransmit targeted mails according to unknown
Address of the addressee carry out meaningless repeating transmission, cause targeted mails to send failure again.Further, have for targeted mails
Have the case where multiple addresses of the addressee, management equipment can only to the address of the addressee re-transmission target mail for sending failure, thus
The accurate delivery that can also realize targeted mails avoids mechanically to all address of the addressee re-transmission target mails, Jin Erke
To improve user experience.
Optionally, when sending failure cause is SMTP authentication information mistake, the processing of step 103 can be as follows:If
Sending failure cause is SMTP authentication information mistake, then generates the second alarm command of modification SMTP authentication information, and is being received
To after modified SMTP authentication information, weight is carried out to targeted mails based on e-mail messages and modified SMTP authentication information
Hair.
In an implementation, management equipment, can after the transmission failure cause for determining targeted mails is SMTP authentication information mistake
To generate the second alarm command of modification SMTP authentication information, modified with notification technique personnel to SMTP authentication information.Skill
Art personnel can modify to SMTP authentication information in management equipment after receiving above-mentioned notice, after the completion of to be modified,
Management equipment can receive modified SMTP authentication information, may then based on the e-mail messages of above-mentioned record, gives birth to again
At targeted mails, and then management equipment can retransmit targeted mails according to modified SMTP authentication information, so as to
Targetedly to retransmit targeted mails, avoid carrying out meaningless mail repeating transmission according to the SMTP authentication information of mistake,
Targeted mails are caused to send failure again.
Optionally, when sending failure cause is that server is unreachable, the processing of step 103 can be as follows:If sent
Failure cause is that server is unreachable, then is based on e-mail messages in default retransmission time and retransmits to targeted mails.
In an implementation, management equipment is Ke Yi after server is unreachable in the transmission failure cause for determining targeted mails
Default retransmission time, such as the 5th minute or ten minutes after determining the transmission failure cause of targeted mails, to targeted mails into
Row is retransmitted, and carries out retransmitting bring system resource waste to targeted mails so as to avoid management equipment continual.
Optionally, when sending failure cause is unknown error, the processing of step 103 can be as follows:If sending failure
The reason is that unknown error, then generate the third alarm command for carrying return information, and after receiving reissue commands, it is based on postal
Part information retransmits targeted mails.
In an implementation, management equipment can be generated and take after the transmission failure cause for determining targeted mails is unknown error
Alarm command with return information carries out detailed analysis to return information with notification technique personnel, and technical staff is receiving
After above-mentioned notice, it can carry out being checked comprehensively to determine specific transmission failure cause.Technical staff causes to send solving
After the failure of failure, the reissue commands to targeted mails can be inputted to management equipment, as technical staff can be visual in WEB
Change the transmission information that administration interface resets targeted mails, and clicks retransmit button after the setup.In this way, management equipment
It can receive reissue commands, may then based on the e-mail messages of above-mentioned record, regenerate targeted mails, and to target postal
Part is retransmitted, it should be noted that since technical staff has carried out detailed investigation and solved to cause to above-mentioned unknown error
The failure of failure is sent, therefore, management equipment may be implemented to retransmit successfully targeted mails.In this way, can be targetedly to mesh
Mark mail is retransmitted, and is avoided blindly retransmitting targeted mails when sending failure cause and not solving, is reduced system resource waste.
The above-mentioned processing about management equipment re-transmission target mail can refer to Fig. 2.
It optionally, can be unknown error according to above-mentioned transmission failure cause if targeted mails repeatedly retransmit failure
Process handled, corresponding processing can be as follows:If the sending times of targeted mails are more than preset times, generation is taken
Alarm command with return information, and after receiving reissue commands, targeted mails are retransmitted based on e-mail messages.
In an implementation, SMTP authentication information mistake unknown for above-mentioned address of the addressee or server it is unreachable etc. it is non-not
Know the transmission failure cause of mistake, if targeted mails retransmit failure, management equipment can recorde the repeating transmission time of targeted mails
Number, while mail server can be received again to the return information of targeted mails, then management equipment can be according to step
101-103 continues to handle targeted mails, if the transmission failure cause determined again is still the transmission of non-unknown error
Failure cause, then it is very possible to retransmit failure again, such as when to send failure cause be that server is unreachable, targeted mails may
Failure can repeatedly be retransmitted.In this way, management equipment may determine that whether the sending times of the targeted mails of record are more than preset times,
Such as three times or five times, if it does, then the alarm command for carrying return information can be generated in management equipment, with notification technique
Personnel carry out detailed analysis to return information, and technical staff can carry out checking comprehensively with determination after receiving above-mentioned notice
It is specific to send failure cause.Technical staff can input after solving the failure for leading to send failure to management equipment
To the reissue commands of targeted mails, in this way, management equipment can receive reissue commands, the postal of above-mentioned record may then based on
Part information regenerates targeted mails and retransmits to it, so that management equipment may be implemented to retransmit successfully targeted mails.
In the present embodiment, by detecting whether received mail server carries the word that reports an error to the return information of mail
Section, can determine whether mail sends failure, can be to the shape carried in above-mentioned return information when determining that mail sends failure
State code or prompting message are analyzed, to determine the transmission failure cause of mail, and then can be former based on determining transmission failure
Because of corresponding default retransmission policy, mail is retransmitted, so as to targetedly retransmit to mail, improves mail
Repeating transmission success rate, avoid send failure cause it is unresolved when blindly mail is retransmitted, reduce system resource waste.In addition,
After determining that mail sends failure, management equipment can record the e-mail messages of mail in time, pass through to both may not need
Reappear the product process of mail to obtain the e-mail messages of mail, and may not need storage mail for a long time, reduces management equipment
The utilization rate of memory space.
Based on the same technical idea, the embodiment of the invention also provides a kind of devices for retransmitting mail, as shown in figure 3,
Described device includes:
Detection module 301 detects in the return information for receipt mail server to the return information of targeted mails
Whether report an error field that mail send failure is carried;
Determining module 302, if recording the target postal for carrying the field that reports an error in the return information
The e-mail messages of part, and determine based on the return information transmission failure cause of the targeted mails;
Module 303 is retransmitted, for according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages
The targeted mails are retransmitted.
Optionally, the determining module 302 is also used to:
If carrying the unknown status code of address of the addressee in the return information, it is determined that the hair of the targeted mails
Sending failure cause is that address of the addressee is unknown;
Alternatively, if carrying the status code of SMTP authentication information mistake in the return information, it is determined that the target
The transmission failure cause of mail is SMTP authentication information mistake;
Alternatively, if carrying the inaccessible miscue message of server in the return information, it is determined that the mesh
The transmission failure cause for marking mail is that server is unreachable;
Alternatively, if status code or miscue message are not carried in the return information, it is determined that the target postal
The transmission failure cause of part is unknown error.
Optionally, the repeating transmission module 303 is also used to:
If the transmission failure cause is that address of the addressee is unknown, it is determined that unknown targeted recipient address generates
The first alarm command of targeted recipient address is modified, and after receiving modified targeted recipient address, based on described
The targeted mails are retransmitted to modified targeted recipient address by e-mail messages;
Alternatively, generating modification SMTP authentication information if the transmission failure cause is SMTP authentication information mistake
Second alarm command, and after receiving modified SMTP authentication information, it is based on the e-mail messages and modified SMTP
Authentication information retransmits the targeted mails;
Alternatively, being based on the mail in default retransmission time if the transmission failure cause is that server is unreachable
Information retransmits the targeted mails.
Optionally, the repeating transmission module 303 is also used to:
If the transmission failure cause is unknown error, the third alarm that generation carries the return information refers to
It enables, and after receiving reissue commands, the targeted mails is retransmitted based on the e-mail messages.
Optionally, the repeating transmission module 303 is also used to:
If the sending times of the targeted mails are more than preset times, the third for carrying the return information is generated
Alarm command, and after receiving reissue commands, the targeted mails are retransmitted based on the e-mail messages.
In the present embodiment, by detecting whether received mail server carries the word that reports an error to the return information of mail
Section, can determine whether mail sends failure, can be to the shape carried in above-mentioned return information when determining that mail sends failure
State code or prompting message are analyzed, to determine the transmission failure cause of mail, and then can be former based on determining transmission failure
Because of corresponding default retransmission policy, mail is retransmitted, so as to targetedly retransmit to mail, improves mail
Repeating transmission success rate, avoid send failure cause it is unresolved when blindly mail is retransmitted, reduce system resource waste.In addition,
After determining that mail sends failure, management equipment can record the e-mail messages of mail in time, pass through to both may not need
Reappear the product process of mail to obtain the e-mail messages of mail, and may not need storage mail for a long time, reduces management equipment
The utilization rate of memory space.
Fig. 4 is the structural schematic diagram of management equipment provided in an embodiment of the present invention.The management equipment 400 can be because of configuration or property
Energy is different and generates bigger difference, may include one or more central processing units 422 (for example, one or one
The above processor) and memory 432, the 430 (example of storage medium of one or more storage application programs 442 or data 444
Such as one or more mass memory units).Wherein, memory 432 and storage medium 430 can be of short duration storage or lasting
Storage.The program for being stored in storage medium 430 may include one or more modules (diagram does not mark), and each module can
To include to the series of instructions operation in management equipment.Further, central processing unit 422 can be set to be situated between with storage
Matter 430 communicates, and the series of instructions operation in storage medium 430 is executed in management equipment 400.
Management equipment 400 can also include one or more power supplys 426, one or more wired or wireless nets
Network interface 450, one or more input/output interfaces 458, one or more keyboards 456, and/or, one or one
A above operating system 441, such as Windows Server TM, Mac OS XTM, Unix TM, Linux TM, FreeBSD
TM etc..
Management equipment 400 may include have memory and one perhaps more than one program one of them or one
A procedure above is stored in memory, and is configured to execute one or one by one or more than one processor
A procedure above includes the instruction for carrying out above-mentioned repeating transmission mail.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (12)
1. a kind of method for retransmitting mail, which is characterized in that the method includes:
Receipt mail server detects to the return information of targeted mails and whether carries mail transmission mistake in the return information
The field that reports an error lost;
If carrying the field that reports an error in the return information, the e-mail messages of the targeted mails are recorded, and be based on
The return information determines the transmission failure cause of the targeted mails;
Weight is carried out to the targeted mails according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages
Hair.
2. the method according to claim 1, wherein described determine the targeted mails based on the return information
Transmission failure cause, including:
If carrying the unknown status code of address of the addressee in the return information, it is determined that the transmission of the targeted mails is lost
It loses the reason is that address of the addressee is unknown;
Alternatively, if carrying the status code of SMTP authentication information mistake in the return information, it is determined that the targeted mails
Transmission failure cause be SMTP authentication information mistake;
Alternatively, if carrying the inaccessible miscue message of server in the return information, it is determined that the target postal
The transmission failure cause of part is that server is unreachable;
Alternatively, if status code or miscue message are not carried in the return information, it is determined that the targeted mails
Sending failure cause is unknown error.
3. according to the method described in claim 2, it is characterized in that, described according to the corresponding default weight of the transmission failure cause
Hair strategy and the e-mail messages retransmit the targeted mails, including:
If the transmission failure cause is that address of the addressee is unknown, it is determined that unknown targeted recipient address generates modification
First alarm command of targeted recipient address, and after receiving modified targeted recipient address, it is based on the mail
The targeted mails are retransmitted to modified targeted recipient address by information;
Alternatively, generating the second of modification SMTP authentication information if the transmission failure cause is SMTP authentication information mistake
Alarm command, and after receiving modified SMTP authentication information, it is authenticated based on the e-mail messages and modified SMTP
Information retransmits the targeted mails;
Alternatively, being based on the e-mail messages in default retransmission time if the transmission failure cause is that server is unreachable
The targeted mails are retransmitted.
4. according to the method described in claim 2, it is characterized in that, described according to the corresponding default weight of the transmission failure cause
Hair strategy and the e-mail messages retransmit the targeted mails, including:
If the transmission failure cause is unknown error, the third alarm command for carrying the return information is generated, and
After receiving reissue commands, the targeted mails are retransmitted based on the e-mail messages.
5. according to the method described in claim 3, it is characterized in that, described according to the corresponding default weight of the transmission failure cause
After hair strategy and the e-mail messages retransmit the targeted mails, further include:
If the sending times of the targeted mails are more than preset times, the third alarm for carrying the return information is generated
Instruction, and after receiving reissue commands, the targeted mails are retransmitted based on the e-mail messages.
6. a kind of device for retransmitting mail, which is characterized in that described device includes:
Whether detection module detects in the return information and takes for receipt mail server to the return information of targeted mails
The field that reports an error of failure is sent with mail;
Determining module, if recording the postal of the targeted mails for carrying the field that reports an error in the return information
Part information, and determine based on the return information transmission failure cause of the targeted mails;
Module is retransmitted, is used for according to the corresponding default retransmission policy of transmission failure cause and the e-mail messages to the mesh
Mark mail is retransmitted.
7. device according to claim 6, which is characterized in that the determining module is also used to:
If carrying the unknown status code of address of the addressee in the return information, it is determined that the transmission of the targeted mails is lost
It loses the reason is that address of the addressee is unknown;
Alternatively, if carrying the status code of SMTP authentication information mistake in the return information, it is determined that the targeted mails
Transmission failure cause be SMTP authentication information mistake;
Alternatively, if carrying the inaccessible miscue message of server in the return information, it is determined that the target postal
The transmission failure cause of part is that server is unreachable;
Alternatively, if status code or miscue message are not carried in the return information, it is determined that the targeted mails
Sending failure cause is unknown error.
8. device according to claim 7, which is characterized in that the repeating transmission module is also used to:
If the transmission failure cause is that address of the addressee is unknown, it is determined that unknown targeted recipient address generates modification
First alarm command of targeted recipient address, and after receiving modified targeted recipient address, it is based on the mail
The targeted mails are retransmitted to modified targeted recipient address by information;
Alternatively, generating the second of modification SMTP authentication information if the transmission failure cause is SMTP authentication information mistake
Alarm command, and after receiving modified SMTP authentication information, it is authenticated based on the e-mail messages and modified SMTP
Information retransmits the targeted mails;
Alternatively, being based on the e-mail messages in default retransmission time if the transmission failure cause is that server is unreachable
The targeted mails are retransmitted.
9. device according to claim 7, which is characterized in that the repeating transmission module is also used to:
If the transmission failure cause is unknown error, the third alarm command for carrying the return information is generated, and
After receiving reissue commands, the targeted mails are retransmitted based on the e-mail messages.
10. device according to claim 8, which is characterized in that the repeating transmission module is also used to:
If the sending times of the targeted mails are more than preset times, the third alarm for carrying the return information is generated
Instruction, and after receiving reissue commands, the targeted mails are retransmitted based on the e-mail messages.
11. a kind of management equipment, which is characterized in that the management equipment includes processor and memory, is deposited in the memory
Contain at least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of journey
Sequence, the code set or instruction set are loaded by the processor and are executed to realize repeating transmission as claimed in claim 1 to 5
The method of mail.
12. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium
Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction
Collection is loaded by processor and is executed to realize the method as claimed in claim 1 to 5 for retransmitting mail.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810709274.6A CN108880994B (en) | 2018-07-02 | 2018-07-02 | Method and device for retransmitting mails |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810709274.6A CN108880994B (en) | 2018-07-02 | 2018-07-02 | Method and device for retransmitting mails |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108880994A true CN108880994A (en) | 2018-11-23 |
CN108880994B CN108880994B (en) | 2021-05-25 |
Family
ID=64298124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810709274.6A Expired - Fee Related CN108880994B (en) | 2018-07-02 | 2018-07-02 | Method and device for retransmitting mails |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108880994B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111245934A (en) * | 2020-01-10 | 2020-06-05 | 深圳壹账通智能科技有限公司 | Feedback method, device and equipment for file transmission and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101103596A (en) * | 2004-12-03 | 2008-01-09 | 捷讯研究有限公司 | Method and apparatus for efficiently managing 'messages sent' file and resending of messages from mobile wireless communication device |
US20130227430A1 (en) * | 2012-02-24 | 2013-08-29 | Samsung Electronics Co., Ltd. | Apparatus and method for displaying an e-mail in a portable terminal |
US20130262589A1 (en) * | 2012-03-27 | 2013-10-03 | Microsoft Corporation | Communicating per-recipient delivery statuses of multi-recipient messages in multiline simple mail transfer protocol responses |
CN103607339A (en) * | 2013-09-11 | 2014-02-26 | 北京京东尚科信息技术有限公司 | Method and system based on content automatic adjustment mail sending strategy |
CN106571995A (en) * | 2015-10-13 | 2017-04-19 | 北京国双科技有限公司 | Mail sending method and device |
CN107666430A (en) * | 2016-07-27 | 2018-02-06 | 中兴通讯股份有限公司 | A kind of E-mail sending method, device and terminal |
-
2018
- 2018-07-02 CN CN201810709274.6A patent/CN108880994B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101103596A (en) * | 2004-12-03 | 2008-01-09 | 捷讯研究有限公司 | Method and apparatus for efficiently managing 'messages sent' file and resending of messages from mobile wireless communication device |
US20130227430A1 (en) * | 2012-02-24 | 2013-08-29 | Samsung Electronics Co., Ltd. | Apparatus and method for displaying an e-mail in a portable terminal |
US20130262589A1 (en) * | 2012-03-27 | 2013-10-03 | Microsoft Corporation | Communicating per-recipient delivery statuses of multi-recipient messages in multiline simple mail transfer protocol responses |
CN103607339A (en) * | 2013-09-11 | 2014-02-26 | 北京京东尚科信息技术有限公司 | Method and system based on content automatic adjustment mail sending strategy |
CN106571995A (en) * | 2015-10-13 | 2017-04-19 | 北京国双科技有限公司 | Mail sending method and device |
CN107666430A (en) * | 2016-07-27 | 2018-02-06 | 中兴通讯股份有限公司 | A kind of E-mail sending method, device and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111245934A (en) * | 2020-01-10 | 2020-06-05 | 深圳壹账通智能科技有限公司 | Feedback method, device and equipment for file transmission and storage medium |
WO2021139052A1 (en) * | 2020-01-10 | 2021-07-15 | 深圳壹账通智能科技有限公司 | File transmission feedback method, device, apparatus, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108880994B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10782990B1 (en) | Container telemetry | |
JP6686033B2 (en) | Method and apparatus for pushing messages | |
CN106156147B (en) | A kind of report sending method based on big data analysis, apparatus and system | |
CN105791399B (en) | More trunk interconnection net big data method for pushing and system | |
CN115118705B (en) | Industrial edge management and control platform based on micro-service | |
WO2015017481A1 (en) | Messaging api over http protocol to establish context for data exchange | |
CN109558294A (en) | Application Monitoring management method, device, computer equipment and storage medium | |
US8335843B2 (en) | Communication system having multiple communication lines between a transmitter and a receiver | |
CN109714409A (en) | A kind of management method and system of message | |
CN103490978A (en) | Terminal, server and message monitoring method | |
CN104348661B (en) | The upload of network failure data, method of reseptance and equipment and recording method and system | |
CN102684906A (en) | Network system and management server | |
CN113158090A (en) | State detection system, method, device, equipment and readable storage medium | |
CN108268420A (en) | Communication means, processor and electronic equipment between processor | |
CN107171873A (en) | A kind of method and apparatus of Message Processing | |
CN111064656A (en) | Data management method, device, system, storage medium and electronic equipment | |
CN108880994A (en) | A kind of method and apparatus for retransmitting mail | |
CN109921920A (en) | A kind of failure information processing method and relevant apparatus | |
CN110569178B (en) | Interface early warning method and system based on big data platform | |
CN107749308A (en) | A kind of background management system that support is provided for Thyroid ultrasound diagnosis APP | |
CN104348711B (en) | Message receiving apparatus and method | |
US20170223136A1 (en) | Any Web Page Reporting and Capture | |
CN113794620B (en) | Message sending method, device, equipment, system and storage medium | |
CN101305389A (en) | Independent message stores and message transport agents | |
CN110740089A (en) | mass-sending spam detection method, device and 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210525 |