Mail sending control method and device, equipment and storage medium
By setting the blacklist and the conditions for sending emails in the mail sending interface, we can determine whether the client meets the interface calling conditions, and solve the problem of frequent attacks on emails and security risks, and achieve the improvement of security and performance.
Patent Information
- Application Number
- CN202411621713.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-02-18
AI Technical Summary
The prior art cannot prevent frequent attacks from emails, poses security risks, and cannot effectively limit malicious calls to the sending mail interface.
By receiving the client's call to send an email interface request, it is determined whether the client meets the interface call conditions, including blacklist and email sending frequency. When the client meets the condition, it is allowed to call the sending mail interface for mail configuration and sending.
Effectively prevent frequent attacks from emails, reduce security risks, reduce server pressure, and avoid malicious calls from sending email interfaces.
Smart Images

Figure CN119484464A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a mail sending control method, device, equipment and storage medium. Background Art
[0002] Email is a communication method that provides information exchange by electronic means. With the increasing number of people's activities on the Internet, email services are becoming more and more important in people's daily lives. A large amount of sensitive information needs to be transmitted on the Internet, and people have higher and higher requirements for the convenience and security of email services. Therefore, it is particularly important to configure email before sending emails.
[0003] In the prior art, some mail servers can configure information such as whether to send mail asynchronously, encryption protocol, whether to verify, debugging level, encoding, etc., and some mail servers can configure the calling encoding and encryption method of mail.
[0004] However, in the above configurations, there is no intervention or restriction on the call of the sending mail interface, and it is impossible to prevent the frequent attacks on mails. When the sending mail interface is maliciously called, no restriction measures will be taken, which poses a great security risk. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides an email sending control method, device, equipment and storage medium, which can prevent emails from being frequently attacked, avoid malicious calls to the email sending interface, reduce security risks, and alleviate server pressure.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for controlling email sending, the method comprising:
[0007] Receive the call to send mail interface request sent by the current client;
[0008] Based on the calling and sending mail interface request, determining whether the current client meets the interface calling conditions, the interface calling conditions including the blacklist and the mail sending frequency;
[0009] When the current client meets the interface calling conditions, the current client is allowed to call the sending mail interface to configure attribute information for the target mail, and the target mail is sent according to the attribute information configured by the current client.
[0010] In some embodiments, before receiving the request for calling the send mail interface sent by the current client, the method further includes:
[0011] In response to the operation on the email configuration, the interface calling condition is configured.
[0012] In some embodiments, the invoking the send mail interface request includes the Internet Protocol address of the current client;
[0013] The step of judging whether the current client satisfies the interface calling condition based on the calling and sending mail interface request includes:
[0014] Determine whether the current client's Internet Protocol address is in the blacklist;
[0015] If the Internet Protocol address of the current client is not in the blacklist, determining whether the number of requests received within a preset time period exceeds the email sending frequency;
[0016] If the number of requests received within the preset time period does not exceed the email sending frequency, it is determined that the current client meets the interface call condition.
[0017] In some embodiments, the method further comprises:
[0018] If the Internet Protocol address of the current client is in the blacklist, or the number of requests received within a preset time period exceeds the email sending frequency, it is determined that the current client does not meet the interface call condition.
[0019] In some embodiments, the method further comprises:
[0020] When the current client does not meet the interface call conditions, an error message is sent to the current client.
[0021] In some embodiments, when the current client satisfies the interface call condition, allowing the current client to call the send mail interface to configure attribute information for the target mail, and sending the target mail according to the attribute information configured by the current client includes:
[0022] When the current client satisfies the interface call condition, receiving the attribute information configured by the current client for the target email, the attribute information including the configuration information and the recipient information of the target email;
[0023] Send the target email according to the configuration information and recipient information of the target email.
[0024] In some embodiments, after sending the target email according to the attribute information currently configured by the client, the method further includes:
[0025] Determine whether the target email is sent successfully;
[0026] If the target email is sent successfully, the sending time of the target email of the current client is recorded;
[0027] If the target email fails to be sent, an error message will be sent to the current client.
[0028] In a second aspect, an embodiment of the present disclosure provides an email sending control device, the device comprising:
[0029] The receiving module is used to receive the request for calling the sending mail interface sent by the current client;
[0030] A first judgment module is used to judge whether the current client meets the interface calling condition based on the calling and sending mail interface request, wherein the interface calling condition includes a blacklist and a mail sending frequency;
[0031] The management module is used to allow the current client to call the sending mail interface to configure attribute information for the target mail when the current client meets the interface calling conditions, and send the target mail according to the attribute information configured by the current client.
[0032] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0033] Memory;
[0034] Processor; and
[0035] Computer programs;
[0036] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.
[0037] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method as described in the first aspect.
[0038] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the method described in the first aspect is implemented.
[0039] The email sending control method, device, equipment and storage medium provided by the embodiments of the present disclosure receive a request for calling the sending email interface sent by the current client, and based on the calling sending email interface request, determine whether the current client meets the interface calling conditions, the interface calling conditions include a blacklist and the email sending frequency, and when the current client meets the interface calling conditions, allow the current client to call the sending email interface to configure attribute information for the target email, and send the target email according to the attribute information configured by the current client. Compared with the prior art, the embodiments of the present disclosure set interface calling conditions, and based on the calling sending email interface request, determine whether the current client meets the interface calling conditions, and only when the interface calling conditions are met can the sending email interface be called to send emails, which can prevent the phenomenon of frequent email attacks, avoid malicious calls to the sending email interface, reduce security risks, and reduce server pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A flow chart of the mail sending control method provided by the embodiment of the present disclosure;
[0043] Figure 2 A flow chart of an email sending control method provided by another embodiment of the present disclosure;
[0044] Figure 3 A flow chart of an email sending control method provided by another embodiment of the present disclosure;
[0045] Figure 4 A schematic diagram of the overall flow of email sending control provided by an embodiment of the present disclosure;
[0046] Figure 5 A schematic diagram of the structure of the mail sending control device provided in an embodiment of the present disclosure;
[0047] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0049] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0050] Email is a communication method that provides information exchange by electronic means. With the increasing number of people's activities on the Internet, email services are becoming more and more important in people's daily lives. A large amount of sensitive information needs to be transmitted on the Internet, and people have higher and higher requirements for the convenience and security of email services. Therefore, it is particularly important to configure email before sending emails.
[0051] In the prior art, some mail servers can configure information such as whether to send mail asynchronously, encryption protocol, whether to verify, debugging level, encoding, etc., and some mail servers can configure the calling encoding and encryption method of mail.
[0052] However, in the above configurations, there is no intervention or restriction on the call of the sending mail interface, and it is impossible to prevent the frequent attacks on mails. When the sending mail interface is maliciously called, no restriction measures will be taken, which poses a great security risk.
[0053] To address this problem, an embodiment of the present disclosure provides an email sending control method, which is described below in conjunction with a specific embodiment.
[0054] Figure 1 A flow chart of the email sending control method provided in the embodiment of the present disclosure. The execution subject of the method is an electronic device. The electronic device can be a portable mobile device such as a tablet computer, a laptop computer, or a fixed device such as a personal computer or a server, wherein the server can be a single server or a server cluster, and the server cluster can be a distributed cluster or a centralized cluster. The method can be applied to the scenario of controlling email sending, and can also be applied to the scenario of configuring email sending. It can be understood that the email sending control method provided in the embodiment of the present disclosure can also be applied in other scenarios.
[0055] Below Figure 1 The email sending control method shown in the figure is introduced, and the method can be applied to electronic devices. The specific steps of the method are as follows:
[0056] S101, receiving a request for calling a mail sending interface sent by a current client.
[0057] In this step, when the user wants to send an email, he will log in to the user's email account on the client, the client sends a request to call the send email interface to the server, and the server receives the request to call the send email interface sent by the current client.
[0058] S102: Based on the invoking and sending mail interface request, determine whether the current client satisfies the interface invoking conditions, wherein the interface invoking conditions include a blacklist and a mail sending frequency.
[0059] In this step, after receiving the call to send mail interface request, the server will determine whether the current client meets the interface call condition according to the call to send mail interface request. If the current client meets the interface call condition, S103 is executed.
[0060] In some embodiments, the interface call condition includes but is not limited to a blacklist and an email sending frequency. The blacklist records which Internet Protocol (IP) addresses are not allowed to call the email sending interface. The email sending frequency indicates the number of times an email can be sent within a preset time period.
[0061] S103: When the current client satisfies the interface calling condition, the current client is allowed to call the mail sending interface to configure attribute information for the target mail, and the target mail is sent according to the attribute information configured by the current client.
[0062] In this step, when the server determines that the current client meets the interface call conditions, it allows the current client to call the send mail interface to configure attribute information for the target mail, and sends the target mail according to the attribute information configured by the current client. The interface call conditions are set. When the interface call conditions are met, the send mail interface can be called to send mail. This can prevent the occurrence of frequent mail attacks, avoid malicious calls to the send mail interface, reduce security risks, and alleviate server pressure.
[0063] The disclosed embodiment receives a request for calling a send-mail interface sent by the current client, and based on the request for calling the send-mail interface, determines whether the current client meets the interface calling conditions, the interface calling conditions including a blacklist and a mail sending frequency, and when the current client meets the interface calling conditions, allows the current client to call the send-mail interface to configure attribute information for the target mail, and sends the target mail according to the attribute information configured by the current client. Compared with the prior art, the disclosed embodiment sets an interface calling condition, and based on the request for calling the send-mail interface, determines whether the current client meets the interface calling conditions, and only when the interface calling conditions are met can the send-mail interface be called to send mail, which can prevent the occurrence of frequent mail attacks, can prevent the send-mail interface from being maliciously called, reduce security risks, and can alleviate server pressure.
[0064] Figure 2 A flowchart of a mail sending control method provided by another embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the method includes the following steps:
[0065] S201. In response to an operation on email configuration, configure an interface calling condition.
[0066] Users can configure emails in advance, and the server responds to the email configuration operations and configures the interface call conditions. By configuring the interface call conditions, when the client frequently triggers the call request to send email interface, the requests that do not meet the interface call conditions can be filtered out to prevent the send email interface from being maliciously called.
[0067] Optionally, the interface call conditions include, but are not limited to, blacklists and mail sending frequencies. For example, configuration items such as blacklists and mail sending frequencies can be added to the mail configuration to filter out requests that do not meet the interface call conditions. The blacklist records which Internet Protocol (IP) addresses are not allowed to call the mail sending interface. The mail sending frequency indicates the number of times an email can be sent within a preset time period. When the mail sending frequency is exceeded, the mail sending interface cannot be called, and the email cannot be sent.
[0068] S202: Receive a request for calling a mail sending interface sent by the current client.
[0069] Specifically, the implementation process and principle of S202 and S101 are the same, and will not be repeated here.
[0070] In some embodiments, the request to call the send mail interface includes the Internet Protocol address of the current client.
[0071] Optionally, the Internet Protocol address may be an actual Internet Protocol address or a virtual Internet Protocol address.
[0072] S203: Determine whether the Internet Protocol address of the current client is in the blacklist.
[0073] In this step, if Figure 4 As shown, the server will determine whether the Internet Protocol (IP) address of the current client is in the blacklist. Specifically, the server will compare the IP address of the current client in the request with one or more IP addresses configured in the blacklist. If the comparison is successful, the Internet Protocol address of the current client is in the blacklist.
[0074] S204: If the Internet Protocol address of the current client is not in the blacklist, determine whether the number of requests received within a preset time period exceeds the email sending frequency.
[0075] In this step, if the current client's Internet Protocol address is not in the blacklist, such as Figure 4 As shown, the server determines whether the number of requests received within a preset time period exceeds the email sending frequency.
[0076] S205: If the number of requests received within the preset time period does not exceed the email sending frequency, it is determined that the current client meets the interface call condition.
[0077] In this step, if the server determines that the number of requests received within the preset time period does not exceed the email sending frequency, it is determined that the current client meets the interface call condition.
[0078] S206: When the current client satisfies the interface calling condition, the current client is allowed to call the mail sending interface to configure attribute information for the target mail, and the target mail is sent according to the attribute information configured by the current client.
[0079] Specifically, the implementation process and principle of S206 and S103 are the same, and will not be repeated here.
[0080] S207: If the Internet Protocol address of the current client is in the blacklist, or the number of requests received within a preset time period exceeds the email sending frequency, it is determined that the current client does not meet the interface call condition.
[0081] In this step, if the server determines that the Internet Protocol address of the current client is in the blacklist, or determines that the number of requests received within a preset time period exceeds the email sending frequency, it determines that the current client does not meet the interface call condition.
[0082] S208: When the current client does not meet the interface calling conditions, an error message is sent to the current client.
[0083] like Figure 4As shown, if the current client does not meet the interface call conditions, the server will send an error message to the current client. For example, a reminder that the email cannot be sent is returned to the client, and this request ends.
[0084] The disclosed embodiment configures the interface call condition in response to the operation of the email configuration, and receives the call to send email interface request sent by the current client. Further, it is determined whether the Internet Protocol address of the current client is in the blacklist. If the Internet Protocol address of the current client is not in the blacklist, it is determined whether the number of requests received within the preset time period exceeds the email sending frequency. If the number of requests received within the preset time period does not exceed the email sending frequency, it is determined that the current client meets the interface call condition. Then, if the current client meets the interface call condition, the current client is allowed to call the send email interface to configure attribute information for the target email, and send the target email according to the attribute information configured by the current client. If the Internet Protocol address of the current client is in the blacklist, or the number of requests received within the preset time period exceeds the email sending frequency, it is determined that the current client does not meet the interface call condition. If the current client does not meet the interface call condition, an error message is sent to the current client. Through this method, an interface calling condition is set, and based on the calling request of the sending email interface, it is judged whether the current client meets the interface calling condition. Only when the interface calling condition is met can the sending email interface be called to send emails. This can prevent emails from being frequently attacked, avoid malicious calls to the sending email interface, reduce security risks, and alleviate server pressure.
[0085] Figure 3 A flowchart of a mail sending control method provided by another embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the method includes the following steps:
[0086] S301, receiving a request for calling a mail sending interface sent by the current client.
[0087] Specifically, the implementation process and principle of S301 and S101 are the same, and will not be repeated here.
[0088] S302: Based on the calling and sending mail interface request, determine whether the current client satisfies the interface calling conditions, wherein the interface calling conditions include a blacklist and a mail sending frequency.
[0089] Specifically, the implementation process and principle of S302 and S102 are the same, and will not be repeated here.
[0090] S303: When the current client satisfies the interface calling condition, receive the attribute information configured by the current client for the target email, wherein the attribute information includes the configuration information and the recipient information of the target email.
[0091] In this step, if the current client meets the interface call conditions, the server receives the attribute information configured by the current client for the target email, and the attribute information includes the configuration information of the target email and the recipient information. Optionally, the configuration information of the target email may include whether the target email is sent asynchronously, the encryption protocol, whether it is verified, the debugging level, the calling code, etc., which are not specifically limited. The current client is used to call the send email interface to configure the attribute information for the target email.
[0092] S304: Send the target email according to the configuration information and recipient information of the target email.
[0093] Furthermore, the server will send the target email according to the configuration information of the target email and the recipient information.
[0094] S305: Determine whether the target email is sent successfully.
[0095] In this step, if Figure 4 As shown, the server will determine whether the target email is sent successfully. If it is sent successfully, S306 is executed; if it fails to send, S307 is executed.
[0096] S306: If the target email is sent successfully, the sending time of the target email of the current client is recorded.
[0097] In this step, if Figure 4 As shown, when the server determines that the target email is sent successfully, it will record the sending time of the target email of the current client.
[0098] S307: If the target email fails to be sent, an error message is sent to the current client.
[0099] In this step, if Figure 4 As shown, when the server determines that the target email fails to be sent, it will send an error message to the current client.
[0100] The embodiment of the present disclosure receives a call to send mail interface request sent by the current client, and based on the call to send mail interface request, determines whether the current client meets the interface call condition, and the interface call condition includes a blacklist and a mail sending frequency. Further, when the current client meets the interface call condition, the attribute information configured by the current client for the target mail is received, and the attribute information includes the configuration information and the recipient information of the target mail, and the target mail is sent according to the configuration information and the recipient information of the target mail. Then, it is determined whether the target mail is sent successfully. If the target mail is sent successfully, the sending time of the target mail of the current client is recorded. If the target mail fails to be sent, an error message is sent to the current client. Compared with the prior art, the embodiment of the present disclosure sets an interface call condition, and based on the call to send mail interface request, determines whether the current client meets the interface call condition. When the interface call condition is met, the send mail interface can be called to send mail, which can prevent the phenomenon of frequent attacks on mails, avoid malicious calls of the send mail interface, reduce security risks, and reduce server pressure. At the same time, it can determine whether the target mail is sent successfully, and feedback the mail sending result to the client in time.
[0101] Figure 5 Schematic diagram of the structure of the mail sending control device provided in the embodiment of the present disclosure. The mail sending control device may be the server as described in the above embodiment, or the mail sending control device may be a component or assembly in the server. The mail sending control device provided in the embodiment of the present disclosure may execute the processing flow provided in the mail sending control method embodiment, such as Figure 5 As shown, the email sending control device 50 includes: a receiving module 51, a first judgment module 52, and a management module 53; wherein the receiving module 51 is used to receive a request for calling an email sending interface sent by the current client; the first judgment module 52 is used to judge whether the current client meets the interface calling condition based on the request for calling the email sending interface, and the interface calling condition includes a blacklist and an email sending frequency; the management module 53 is used to allow the current client to call the email sending interface to configure attribute information for the target email when the current client meets the interface calling condition, and send the target email according to the attribute information configured by the current client.
[0102] Optionally, before receiving the request for calling the sending mail interface sent by the current client, the device 50 further includes: a configuration module 54; the configuration module 54 is used to configure the interface calling conditions in response to the operation of the mail configuration.
[0103] Optionally, the call to send an email interface request includes the Internet Protocol address of the current client; when the first judgment module 52 judges whether the current client meets the interface call conditions based on the call to send an email interface request, it is specifically used to: judge whether the Internet Protocol address of the current client is in the blacklist; if the Internet Protocol address of the current client is not in the blacklist, judge whether the number of requests received within a preset time period exceeds the email sending frequency; if the number of requests received within the preset time period does not exceed the email sending frequency, determine that the current client meets the interface call conditions.
[0104] Optionally, the first judgment module 52 is further used to: determine that the current client does not meet the interface call condition if the Internet Protocol address of the current client is in the blacklist, or the number of requests received within a preset time period exceeds the email sending frequency.
[0105] Optionally, the device further comprises: a prompt module 55; the prompt module 55 is used to send an error message to the current client when the current client does not meet the interface call condition.
[0106] Optionally, when the current client meets the interface calling conditions, the management module 53 allows the current client to call the sending email interface to configure attribute information for the target email, and sends the target email according to the attribute information configured by the current client. Specifically, it is used for: when the current client meets the interface calling conditions, receiving the attribute information configured by the current client for the target email, the attribute information including the configuration information of the target email and the recipient information; and sending the target email according to the configuration information and the recipient information of the target email.
[0107] Optionally, when the current client meets the interface calling conditions, the device 50 allows the current client to call the sending email interface to configure attribute information for the target email, and sends the target email according to the attribute information configured by the current client. The second judgment module 56 is used to judge whether the target email is sent successfully; if the target email is sent successfully, the sending time of the target email of the current client is recorded; if the target email fails to be sent, an error message is sent to the current client.
[0108] Figure 5 The mail sending control device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail here.
[0109] Figure 6 Schematic diagram of the structure of an electronic device in the embodiment of the present disclosure. Figure 6, which shows a structural schematic diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0110] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603 to implement the mail sending control method of the embodiment described in the present disclosure. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0111] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0112] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart, thereby implementing the mail sending control method as described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0113] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0114] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0115] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0116] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0117] Receive the call to send mail interface request sent by the current client;
[0118] Based on the calling and sending mail interface request, determining whether the current client meets the interface calling conditions, the interface calling conditions including the blacklist and the mail sending frequency;
[0119] When the current client meets the interface calling conditions, the current client is allowed to call the sending mail interface to configure attribute information for the target mail, and send the target mail according to the attribute information configured by the current client.
[0120] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0121] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0123] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0124] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0125] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0126] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0127] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0128] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A mail sending control method, characterized in that: The method comprises: Receive the call to send mail interface request sent by the current client; Based on the calling and sending mail interface request, determining whether the current client meets the interface calling conditions, the interface calling conditions including the blacklist and the mail sending frequency; When the current client meets the interface calling conditions, the current client is allowed to call the sending mail interface to configure attribute information for the target mail, and the target mail is sent according to the attribute information configured by the current client.
2. The method according to claim 1, characterized in that Before receiving the request for calling the sending mail interface sent by the current client, the method further includes: In response to the operation on the email configuration, the interface calling condition is configured.
3. The method according to claim 1, characterized in that: The invoking request to send the mail interface includes the Internet Protocol address of the current client; The step of judging whether the current client satisfies the interface calling condition based on the calling and sending mail interface request includes: Determine whether the current client's Internet Protocol address is in the blacklist; If the Internet Protocol address of the current client is not in the blacklist, determining whether the number of requests received within a preset time period exceeds the email sending frequency; If the number of requests received within the preset time period does not exceed the email sending frequency, it is determined that the current client meets the interface call condition.
4. The method according to claim 3, characterized in that The method further comprises: If the Internet Protocol address of the current client is in the blacklist, or the number of requests received within a preset time period exceeds the email sending frequency, it is determined that the current client does not meet the interface call condition.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the current client does not meet the interface call conditions, an error message is sent to the current client.
6. The method according to claim 1, characterized in that The method of allowing the current client to call the mail sending interface to configure attribute information for the target mail and sending the target mail according to the attribute information configured by the current client, when the current client meets the interface calling condition, includes: When the current client satisfies the interface call condition, receiving the attribute information configured by the current client for the target email, the attribute information including the configuration information and the recipient information of the target email; Send the target email according to the configuration information and recipient information of the target email.
7. The method according to claim 1, characterized in that After sending the target email according to the attribute information currently configured by the client, the method further includes: Determine whether the target email is sent successfully; If the target email is sent successfully, the sending time of the target email of the current client is recorded; If the target email fails to be sent, an error message will be sent to the current client.
8. A mail sending control device, characterized in that: The device comprises: The receiving module is used to receive the request for calling the sending mail interface sent by the current client; A first judgment module is used to judge whether the current client meets the interface calling condition based on the calling and sending mail interface request, wherein the interface calling condition includes a blacklist and a mail sending frequency; The management module is used to allow the current client to call the sending mail interface to configure attribute information for the target mail when the current client meets the interface calling conditions, and send the target mail according to the attribute information configured by the current client.
9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.