Disclosure of Invention
Based on this, it is necessary to provide a method, an apparatus, a computer-readable storage medium, and a computer device for sending an email, aiming at the problem that the sending of the email in the conventional technology causes a large amount of network transmission consumption.
A method for sending a mail, comprising:
receiving a mail sending request sent by a sending client, wherein the mail sending request comprises destination client account information of a mail to be sent and the content of the mail to be sent;
analyzing the content of the mail to be sent to obtain a corresponding mail template number; generating mail identification information of the mail to be sent according to the account information of the target client and the mail template number;
and storing the mail identification information, and sending a new mail prompt message related to the mail identification information to the target client.
According to the mail sending method, when the mail is sent, the generated mail identification information is only stored in the mail system service, so that the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
In one embodiment, the step of storing the mail identification information comprises:
the account information of the target client is used as first-level index information, and the number of the mail template is used as second-level index information; creating a mail index according to the first-level index information and the second-level index information;
the step of saving the mail identification information comprises the following steps:
and storing the mail identification information into the mail index according to the first-level index information and the second-level index information. In the above embodiment, the mail identification information is stored in the mail index according to the first-level index information and the second-level index information, and the corresponding mail identification information can be conveniently and quickly searched through the mail index.
In one embodiment, the step of analyzing the content of the mail to be sent to obtain the corresponding mail template number includes:
inquiring a pre-constructed first data source according to the content of the mail to be sent, thereby acquiring a mail template number corresponding to the content of the mail to be sent; the first data source stores a plurality of mail contents, and each mail content corresponds to one mail template number. According to the embodiment, the first data source is searched, the mail template number corresponding to the mail content to be sent can be quickly acquired, and the mail identification information of the mail to be sent can be conveniently generated according to the mail template number and the account information of the target client terminal.
In one embodiment, after the step of receiving the mail sending request sent by the sending client, the method further includes: determining the mail type of the mail to be sent according to the mail content to be sent;
the step of generating the mail identification information of the mail to be sent according to the destination client account information and the mail template number includes:
and generating the mail identification information of the mail to be sent according to the destination client account information, the mail template number and the mail type of the mail to be sent. According to the embodiment, the mail type of the mail to be sent can be determined according to the content of the mail to be sent, and corresponding processing can be conveniently carried out according to different mail types. Meanwhile, mail identification information containing mail types is directly generated, namely, the mails to be sent are converted into corresponding mail identification information, so that the data transmission quantity is small, and the network transmission consumption is saved. The mail sending efficiency can be improved; meanwhile, the mail entity is not directly generated and sent out, so that the storage space of the mail system can be saved, and the resource waste is avoided.
In one embodiment, the mail type comprises a first mail type and a second mail type;
the step of determining the mail type of the mail to be sent according to the mail content to be sent comprises the following steps:
if the content of the mail to be sent does not contain user personal data information, determining that the mail type of the mail to be sent is a first mail type;
and if the mail content to be sent contains user personal data information, determining that the mail type of the mail to be sent is a second mail type. According to the embodiment, the mail type of the mail to be sent is determined by judging whether the content of the mail to be sent contains the user personal data information, so that the mail to be sent can be distinguished, and different data sources can be conveniently searched according to different mail types.
In one embodiment, the step of analyzing the content of the mail to be sent to obtain the corresponding mail template number further includes:
inquiring whether the first data source has mail content corresponding to the mail content to be sent; if not, storing the mail content to be sent into the first data source, and allocating a corresponding mail template number to the mail content to be sent. According to the embodiment, the mail contents which are not stored in the first data source are stored, and the corresponding mail template numbers are distributed to the mail contents, so that each mail content can be matched with the corresponding mail template number in the first data source, and the accuracy of generating the mail identification information is improved.
In one embodiment, after the step of determining the mail type of the mail to be sent according to the content of the mail to be sent, the method further includes:
and if the mail type of the mail to be sent is a second mail type, storing the user personal data information contained in the mail content to be sent to a second data source which is constructed in advance. According to the embodiment, after the mail type of the mail to be sent is determined to be the second mail type, the user personal data information contained in the content of the mail to be sent is timely stored in the pre-constructed second data source, the second data source is updated, and timeliness of data of the second data source is improved.
In one embodiment, the step of generating the mail identification information of the mail to be sent according to the destination client account information and the mail template number includes:
and acquiring a source IP address and a timestamp of the mail to be sent, and sequentially combining the source IP address, the timestamp, the account information of the target client and the number of the mail template to generate the mail identification information of the mail to be sent. According to the embodiment, the source IP address and the timestamp of the mail to be sent can be quickly searched directly from the generated mail identification information of the mail to be sent.
A mail transmission apparatus comprising:
the request receiving module is used for receiving a mail sending request sent by a sending client, wherein the mail sending request comprises destination client account information of a mail to be sent and mail content to be sent;
the information generation module is used for analyzing the content of the mail to be sent to obtain a corresponding mail template number; generating mail identification information of a mail to be sent according to the destination client account information and the mail template number;
and the information storage module is used for storing the mail identification information and sending a new mail prompt message related to the mail identification information to the target client.
When the mail is sent, the mail sending device only stores the generated mail identification information in the mail system service, so that the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described mail transmission method. When the mail sending method is executed, the generated mail identification information is only stored in the mail system service when the mail is sent, the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of mail transmission described above when executing the program. When the mail sending method is executed, the generated mail identification information is only stored in the mail system service when the mail is sent, the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
According to the technical scheme, a mail sending request sent by a sending client is received, wherein the mail sending request comprises destination client account information of a mail to be sent and mail content to be sent; analyzing the content of the mail to be sent to obtain a corresponding mail template number; generating mail identification information of the mail to be sent according to the account information of the target client and the mail template number; and storing the mail identification information, and sending a new mail prompt message related to the mail identification information to the target client. When the mail is sent, the generated mail identification information is only stored in the mail system service, so that the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or (module) elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Although the steps in the present invention are arranged by using reference numbers, the order of the steps is not limited, and the relative order of the steps can be adjusted unless the order of the steps is explicitly stated or other steps are required for the execution of a certain step.
FIG. 1 is a schematic flow chart diagram of a method of sending mail according to an embodiment; as shown in fig. 1, the mail sending method in this embodiment includes the following steps:
step S101, receiving a mail sending request sent by a sending client.
In this step, the mail sending request includes the destination client account information of the mail to be sent and the content of the mail to be sent. The sending client, like the destination client, can send, receive and read mail via various mail protocols including WEBMAIL (email service protocol), POP3 (post office third version protocol), IMAP (mail access protocol).
The destination client account information refers to information such as a mailbox account, a user name, an identity card and the like related to a destination user, and user content corresponding to the destination client account information, such as user personal data information, can be acquired by querying a related data source through the destination client account information. The mail content to be sent refers to the main content of the mail to be sent, such as advertisement information of marketing mails.
Step S102, analyzing the content of the mail to be sent to obtain a corresponding mail template number; and generating the mail identification information of the mail to be sent according to the account information of the target client and the mail template number.
In this step, a related data source is queried through the mail content to be sent, so that mail template numbers corresponding to the mail content to be sent can be obtained, and each mail template number corresponds to one piece of mail content to be sent. The mail identification information is the unique identification of the mail to be sent in the mail system service, corresponds to the mail to be sent one by one, and mainly comprises information such as target client account information, mail template number and the like. The mail system service is a server responsible for e-mail sending and receiving management.
Specifically, a data source is searched to obtain a mail template number corresponding to the content of the mail to be sent, and then the mail identification information of the mail to be sent can be generated by combining with the account information of the destination client. The mail to be sent is converted into the mail identification information corresponding to the mail to be sent, so that the transmission quantity of the action data is small, and the network transmission consumption can be saved; meanwhile, the mail entity is not directly generated, so that the storage space of the mail system can be saved.
Step S103, storing the mail identification information, and sending a new mail prompt message related to the mail identification information to the target client.
In this step, the new mail prompt information is related to the mail identification information corresponding to the mail to be sent. Wherein, the same mail is a mail to be sent for a sending client; for the destination client, the mail to be read is the same as the destination client.
Specifically, the mail identification information is saved, which is equivalent to sending out a corresponding mail to be sent; and sending a new mail prompt message related to the mail identification message to the target client. The action data transmission quantity is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, the target client can be reminded to read the mails in time.
In an optional embodiment, new mail prompt information is sent to the destination client, so that the destination client sends a mail reading request to the mail system service according to the new mail prompt information, and requests the mail system service to obtain mail identification information corresponding to the mail to be read (for the sending client, that is, the mail to be sent), and then, through the mail identification information, a related data source is searched for and a corresponding mail to be read is obtained. For the same mail, the mail identification information of the mail to be read is the same as the mail identification information of the mail to be sent. According to the embodiment, the new mail prompt information is sent to the target client, so that the target client can be informed to read the mail in time, the target client can obtain the corresponding mail to be read according to the new mail prompt information, convenience and rapidness are realized, and a large amount of network transmission consumption can be saved.
In the embodiment, a mail sending request sent by a sending client is received, wherein the mail sending request comprises destination client account information of a mail to be sent and mail content to be sent; analyzing the content of the mail to be sent to obtain a corresponding mail template number; generating mail identification information of the mail to be sent according to the account information of the target client and the mail template number; and storing the mail identification information, and sending a new mail prompt message related to the mail identification information to the target client. When the mail is sent, the generated mail identification information is only stored in the mail system service, so that the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
In an optional embodiment, before the step of saving the mail identification information in step S103, the method includes: the account information of the target client is used as first-level index information, and the number of the mail template is used as second-level index information; and creating a mail index according to the first-level index information and the second-level index information. According to the embodiment, the corresponding mail identification information can be quickly searched by creating the mail index.
In another optional embodiment, the step of saving the mail identification information comprises: and storing the mail identification information into the mail index according to the first-level index information and the second-level index information. In the above embodiment, the mail identification information is stored in the mail index according to the first-level index information and the second-level index information, so that the corresponding mail identification information can be conveniently and quickly searched through the mail index.
In an optional embodiment, in step S102, the step of analyzing the content of the mail to be sent to obtain the corresponding mail template number includes: inquiring a pre-constructed first data source according to the content of the mail to be sent, thereby acquiring a mail template number corresponding to the content of the mail to be sent; the first data source stores a plurality of mail contents, such as the mail contents of marketing mails, wherein each mail content corresponds to a mail template number. According to the embodiment, the first data source is searched, the mail template number corresponding to the mail content to be sent can be quickly acquired, and the mail identification information of the mail to be sent can be conveniently generated according to the mail template number and the account information of the target client terminal.
In another optional embodiment, in step S102, the analyzing the content of the mail to be sent to obtain a corresponding mail template number further includes: inquiring whether the first data source has mail content corresponding to the mail content to be sent; if not, storing the mail content to be sent into the first data source, and distributing a corresponding mail template number for the mail content to be sent; and if so, directly acquiring a mail template number corresponding to the mail content to be sent. According to the embodiment, the mail contents which are not stored in the first data source are stored, and the corresponding mail template numbers are distributed to the mail contents, so that each mail content can be matched with the corresponding mail template number in the first data source, and the accuracy of generating the mail identification information is improved.
In an optional embodiment, in step S101, after the step of receiving a mail transmission request sent by a sending client, the method further includes: and determining the mail type of the mail to be sent according to the mail content to be sent. For example, if the content of the mail to be sent is not related to the personal user data information, it may be determined that the mail to be sent is a marketing mail or other mail that is not related to the personal user data information. According to the embodiment, the mail type of the mail to be sent can be determined according to the content of the mail to be sent, and corresponding processing can be conveniently carried out according to different mail types.
Further, the generating the mail identification information of the mail to be sent according to the destination client account information and the mail template number includes: and generating the mail identification information of the mail to be sent according to the destination client account information, the mail template number and the mail type of the mail to be sent. The mail identification information containing the mail type is directly generated, namely the mail to be sent is converted into the corresponding mail identification information, so that the data transmission quantity is small, and the network transmission consumption is saved. The mail sending efficiency can be improved; meanwhile, the mail entity is not directly generated and sent out, so that the storage space of the mail system can be saved, and the resource waste is avoided.
In an alternative embodiment, the mail types include a first mail type and a second mail type. The step of determining the mail type of the mail to be sent according to the mail content to be sent comprises the following steps: if the content of the mail to be sent does not contain the personal data information of the user, determining that the mail type of the mail to be sent is a first mail type, for example, the mail type of a marketing mail is the first mail type; and if the content of the mail to be sent contains user personal data information, such as bill data, determining that the mail type of the mail to be sent is a second mail type, such as the mail type of the bill mail is the second mail type. According to the embodiment, whether the content of the mail to be sent contains the user personal data information or not is judged, so that the mail type of the mail to be sent is determined, the mail to be sent can be distinguished, and meanwhile, different data sources can be conveniently operated according to different mail types.
In an optional embodiment, after the step of determining the mail type of the mail to be sent according to the content of the mail to be sent, the method further includes: and if the mail type of the mail to be sent is a second mail type, for example, the mail to be sent is a bill mail, storing the user personal data information contained in the content of the mail to be sent to a second data source which is constructed in advance. According to the embodiment, after the mail type of the mail to be sent is determined to be the second mail type, the user personal data information contained in the content of the mail to be sent is timely stored in the pre-constructed second data source, the second data source is updated, and timeliness of data of the second data source is improved.
In an optional embodiment, in the step S102, the generating, according to the destination client account information and the mail template number, mail identification information of the mail to be sent includes: and acquiring a source IP address and a timestamp of the mail to be sent, and sequentially combining the source IP address, the timestamp, the account information of the target client and the number of the mail template to generate the mail identification information of the mail to be sent. For example, 200.10.64.10.28.15077998176812947 is a source IP address, 1707 is a timestamp, 279 is a mail template number, 18803789598 is destination client account information, the source IP address, the timestamp, the destination client account information, and the mail template number are sequentially combined together to form 200.10.64.10.28.15077998176812947.1707ha279_18803789598@189.cn, and this string is mail identification information of a mail to be sent. According to the embodiment, the source IP address and the timestamp of the mail to be sent can be quickly searched from the generated mail identification information of the mail to be sent.
Furthermore, the source IP address, the timestamp, the destination client account information, and the mail template number of the mail to be sent may also be combined in sequence in other sequences or formats to generate the mail identification information of the mail to be sent.
In an optional embodiment, before the step of receiving the mail sending request sent by the sending client in step S101, the method further includes: establishing a first data source for storing mail contents corresponding to the mail template numbers; e.g., mail content of marketing mail, mail content of billing mail; establishing a second data source for storing user personal data information corresponding to the account information of each target client; billing data such as billing mail; according to the embodiment, the first data source and the second data source are respectively established and used for storing the mail content corresponding to each mail template number and the user personal data information corresponding to each target client account information, so that the related data sources can be searched directly according to the mail content to be sent and the target client account information, the generation of the mail identification information of the mail to be sent is facilitated subsequently according to the mail template number and the target client account information, and high accuracy is achieved.
Further, for the first data source, after a certain time, for example, 1 month, the mail content of the marketing mail or the mail content of the billing mail on the internet is re-acquired, and for the same mail template number, the re-acquired mail content of the marketing mail or the mail content of the billing mail is adopted to cover the mail content of the marketing mail or the mail content of the billing mail originally corresponding to each mail template number. And further updating the first data source according to the actual situation. Similarly, for the second data source, after a certain time, for example, 1 month, the user personal data information, such as the billing data, corresponding to the account information of each destination client is re-acquired, and for the same destination client account information, the re-acquired user personal data information corresponding to the account information of each destination client is adopted to cover the original user personal data information of the account information of each destination client. And further updating the second data source according to the actual situation. According to the embodiment, the first data source and the second data source are updated in time within the set time, so that the accuracy and the timeliness of generating the corresponding mail identification information can be improved, and the situation that the latest mail cannot be sent in time is avoided.
In an optional embodiment, before the step of receiving the mail sending request sent by the sending client in step S101, the method further includes: and creating a mail index list for storing mail indexes corresponding to the mail identification information. According to the embodiment, the mail index stored in the mail index list is inquired, the mail identification information corresponding to the mail index can be quickly acquired, and meanwhile, a subsequent target client can conveniently acquire the corresponding mail identification information according to the new mail prompt information.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention.
The present invention also provides a mail transmission apparatus that can be used to execute the above-described mail delivery method, based on the same idea as the mail transmission method in the above-described embodiment. For convenience of explanation, only the parts related to the embodiments of the present invention are shown in the schematic configuration of the embodiments of the mail sending apparatus, and those skilled in the art will understand that the illustrated configuration does not constitute a limitation of the apparatus, and may include more or less components than those illustrated, or combine some components, or arrange different components.
FIG. 2 is a schematic configuration diagram of a mail sending apparatus according to an embodiment; as shown in fig. 2, the mail transmission apparatus in the present embodiment includes:
arequest receiving module 210, configured to receive a mail sending request sent by a sending client, where the mail sending request includes destination client account information of a mail to be sent and mail content to be sent;
theinformation generating module 220 is configured to analyze content of a mail to be sent to obtain a corresponding mail template number; generating mail identification information of a mail to be sent according to the destination client account information and the mail template number;
theinformation saving module 230 is configured to save the mail identification information, and send a new mail prompt message related to the mail identification information to the destination client.
In an optional embodiment, the email sending apparatus further includes an email index creating module, configured to use the destination client account information as first-level index information, and use the email template number as second-level index information; and creating a mail index according to the first-level index information and the second-level index information.
In an optional embodiment, theinformation saving module 230 may further be configured to: and storing the mail identification information into the mail index according to the first-level index information and the second-level index information.
In an optional embodiment, theinformation generating module 220 may further be configured to: inquiring a pre-constructed first data source according to the content of the mail to be sent, thereby acquiring a mail template number corresponding to the content of the mail to be sent; the first data source stores a plurality of mail contents, and each mail content corresponds to one mail template number.
In an optional embodiment, the email sending apparatus further includes an email type determining module, configured to determine an email type of the email to be sent according to the content of the email to be sent. For theinformation generation module 220, it may further be configured to: and generating the mail identification information of the mail to be sent according to the destination client account information, the mail template number and the mail type of the mail to be sent.
In an optional embodiment, the mail type includes a first mail type and a second mail type, and the mail type determining module may further be configured to: if the content of the mail to be sent does not contain user personal data information, determining that the mail type of the mail to be sent is a first mail type; and if the mail content to be sent contains user personal data information, determining that the mail type of the mail to be sent is a second mail type.
In an optional embodiment, theinformation generating module 220 may further be configured to: inquiring whether the first data source has mail content corresponding to the mail content to be sent; if not, storing the mail content to be sent into the first data source, and allocating a corresponding mail template number to the mail content to be sent.
In an optional embodiment, the mail type determining module may be further configured to: and if the mail type of the mail to be sent is a second mail type, storing the user personal data information contained in the mail content to be sent to a second data source which is constructed in advance.
In an optional embodiment, theinformation generating module 220 is further configured to: and acquiring a source IP address and a timestamp of the mail to be sent, and sequentially combining the source IP address, the timestamp, the account information of the target client and the number of the mail template to generate the mail identification information of the mail to be sent.
In the above embodiments, a request receiving module receives a mail sending request sent by a sending client, where the mail sending request includes destination client account information of a mail to be sent and mail content to be sent; the information generation module analyzes the content of the mail to be sent to obtain a corresponding mail template number; generating mail identification information of the mail to be sent according to the account information of the target client and the mail template number; and the information storage module stores the mail identification information and sends a new mail prompt message related to the mail identification information to the target client. When the mail is sent, the generated mail identification information is only stored in the mail system service, so that the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
Fig. 3 is a schematic configuration diagram of a mail transmission system of an embodiment. As shown in fig. 3, the mail transmission system of the present embodiment includes: a sendingclient 301, amail system service 302 and adestination client 303. The sendingclient 301 is configured to send a mail reading request to themail system service 302; themail system service 302 is configured to receive a mail sending request sent by a sendingclient 301, where the mail sending request includes destination client account information of a mail to be sent and mail content to be sent; analyzing the content of the mail to be sent to obtain a corresponding mail template number; generating mail identification information of the mail to be sent according to the account information of the target client and the mail template number; stores the mail identification information and sends a new mail prompt message related to the mail identification information to thedestination client 303. Thedestination client 303 is configured to receive new mail alert information sent by themail system service 302. According to the embodiment, when the mail is sent, the generated mail identification information is only stored in the mail system service, so that the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved. The mail system service sends the new mail prompt information to the target client, so that the target client can be informed to read the mail in time, and the target client can obtain the corresponding mail to be read according to the new mail prompt information, and the method is convenient and quick.
In an optional embodiment, thedestination client 303 may further be configured to: according to the new mail prompt information sent by themail system service 302, a mail reading request is sent to themail system service 302 to request themail system service 302 to obtain a corresponding mail to be read according to the mail reading request and return the corresponding mail to be read to thedestination client 303. According to the embodiment, the target client can obtain the corresponding mail to be read according to the prompt information of the new mail, the operation is convenient and fast, and the network transmission consumption and the storage space of a mail system can be saved.
In an alternative embodiment, themail system service 302 may be further configured to: receiving a mail reading request sent by thedestination client 303, searching a mail index list according to the mail reading request, acquiring corresponding mail index information, and acquiring corresponding mail identification information according to the mail index information; and searching a related data source to obtain a corresponding mail to be read according to the mail identification information, and then returning the mail to be read to thedestination client 303. According to the embodiment, the mail system service acquires the corresponding mail to be read only when the target client sends the mail reading request, so that the method and the system are convenient and quick, and the storage space of the mail system is saved.
In an alternative embodiment, themail system service 302 may be further configured to: the account information of the target client is used as first-level index information, and the number of the mail template is used as second-level index information; and creating a mail index according to the first-level index information and the second-level index information.
In an alternative embodiment, themail system service 302 may be further configured to: if the content of the mail to be sent does not contain user personal data information, determining that the mail type of the mail to be sent is a first mail type; and if the mail content to be sent contains user personal data information, determining that the mail type of the mail to be sent is a second mail type.
In an optional embodiment, themail system service 302 is further configured to: and acquiring a source IP address and a timestamp of the mail to be sent, and sequentially combining the source IP address, the timestamp, the account information of the target client and the number of the mail template to generate the mail identification information of the mail to be sent.
In the above embodiments, when sending the mail, the generated mail identification information is only stored in the mail system service, so that the data volume transmission is small, a large amount of network transmission consumption can be saved, and the mail sending efficiency is improved; meanwhile, no mail entity is generated, so that a large amount of storage space of a mail system can be saved.
It should be noted that, in the implementation of the above-mentioned exemplary mail sending apparatus, because the contents of information interaction, execution process, and the like between the modules/units are based on the same concept as the foregoing method embodiment of the present invention, the technical effect brought by the contents is the same as the foregoing method embodiment of the present invention, and specific contents may refer to the description in the method embodiment of the present invention, and are not described again here.
In addition, in the above-described exemplary embodiment of the mail sending apparatus, the logical division of each program module is only an example, and in practical applications, the above-described function distribution may be performed by different program modules according to needs, for example, due to the configuration requirements of corresponding hardware or the convenience of implementation of software, that is, the internal structure of the mail sending apparatus is divided into different program modules to perform all or part of the above-described functions.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium and sold or used as a stand-alone product. The program, when executed, may perform all or a portion of the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only Memory (ROM), a Random Access Memory (RAM), or the like.
Accordingly, in an embodiment, a storage medium is further provided, on which a computer program is stored, wherein the program, when executed by a processor, implements any of the mail sending methods in the embodiments described above.
In addition, the storage medium may be provided in a computer device, and the computer device further includes a processor, and when the processor executes the program in the storage medium, all or part of the steps of the embodiments of the methods described above can be implemented.
Accordingly, in an embodiment, there is also provided a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method of transmitting the mail according to any one of the embodiments.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. It will be understood that the terms "first," "second," and the like as used herein are used herein to distinguish one object from another, but the objects are not limited by these terms.
The above-described examples merely represent several embodiments of the present invention and should not be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.