CN112039752B - Method, device and equipment for sending mails - Google Patents

Method, device and equipment for sending mails Download PDF

Info

Publication number
CN112039752B
CN112039752B CN202010802005.1A CN202010802005A CN112039752B CN 112039752 B CN112039752 B CN 112039752B CN 202010802005 A CN202010802005 A CN 202010802005A CN 112039752 B CN112039752 B CN 112039752B
Authority
CN
China
Prior art keywords
recipient information
sending
mail
information group
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010802005.1A
Other languages
Chinese (zh)
Other versions
CN112039752A (en
Inventor
李琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN202010802005.1A priority Critical patent/CN112039752B/en
Publication of CN112039752A publication Critical patent/CN112039752A/en
Application granted granted Critical
Publication of CN112039752B publication Critical patent/CN112039752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Strategic Management (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of mail sending, and discloses a method for sending a mail, which comprises the following steps: acquiring more than two addressee information; under the condition of obtaining a sending instruction, grouping the recipient information to obtain a recipient information group; sending the mail according to the recipient information group; acquiring a receiver information group which is not successfully sent; and sending the unsuccessfully sent recipient information group by the mail. According to the method, the receivers are sent in groups, and the unsuccessfully sent receiver information group is sent again, so that the receivers in the successfully sent receiver information group do not need to be sent repeatedly when the mail is sent, the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the user experience is better when the mail is sent. The application also discloses a device and equipment for sending the mails.

Description

Method, device and equipment for sending mails
Technical Field
The present application relates to the field of email sending technologies, and for example, to a method, an apparatus, and a device for sending an email.
Background
At present, electronic mail has become a common information transmission mode for people, and various information is transmitted not only in daily life but also in work in a large amount by means of electronic mail.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art: when a user sends information by using an electronic mail to a plurality of recipients, if sudden conditions such as network disconnection occur, part of the recipients may receive the electronic mail and part of the recipients do not receive the electronic mail.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method, a device and equipment for sending a mail, so that the efficiency of successfully sending the mail can be improved.
In some embodiments, the method for sending mail includes:
acquiring more than two addressee information;
under the condition of obtaining a sending instruction, grouping the recipient information to obtain a recipient information group;
sending the mail according to the recipient information group;
acquiring a receiver information group which is not successfully sent;
and sending the unsuccessfully sent recipient information group by the mail.
In some embodiments, the recipient information includes a recipient mailbox address, and grouping the recipient information to obtain a recipient information group includes:
acquiring a postbox suffix name of the receiver according to the receiver postbox address;
and grouping the recipient information according to the postbox suffix name to obtain a recipient information group.
In some embodiments, grouping the recipient information according to the postbox suffix name to obtain a recipient information group includes:
and determining the recipient information with the same postbox suffix name as the same recipient information group.
In some embodiments, the recipient information includes a recipient mailbox address, and grouping the recipient information to obtain a recipient information group includes:
matching a group name corresponding to the receiver mailbox address in a preset address list;
grouping the recipient information according to the grouping name to obtain a recipient information group;
and the address book data table stores the corresponding relation between the address of the receiver mailbox and the grouping name.
In some embodiments, grouping the recipient information according to the group name to obtain a recipient information group includes:
and determining the recipient information with the same grouping name as the same recipient information group.
In some embodiments, obtaining the set of unsuccessfully sent recipient information comprises:
acquiring the mail sending state of the recipient information group;
and acquiring the unsuccessfully sent recipient information group according to the mail sending state.
In some embodiments, when sending the email according to the recipient information group, the method further includes:
monitoring a network connection state;
and under the condition that the network connection state is a disconnection state, acquiring the unsuccessfully sent recipient information group.
In some embodiments, after obtaining the set of recipient information that was not successfully sent, the method further includes:
and under the condition that the network connection state is recovered to be the connection state, sending the mail to the unsuccessfully sent recipient information group.
In some embodiments, the apparatus for sending mail includes a processor and a memory storing program instructions, the processor being configured to execute the method for sending mail described above when executing the program instructions.
In some embodiments, the apparatus comprises a device for sending mail as described above.
The method, the device and the equipment for sending the mails provided by the embodiment of the disclosure can realize the following technical effects: the method comprises the steps of obtaining more than two pieces of recipient information, grouping the recipient information under the condition of obtaining a sending instruction to obtain a recipient information group, sending mails according to the recipient information group, and sending mails to the recipient information group which is not sent successfully. In this way, by carrying out group sending on the recipients and resending the unsuccessfully sent recipient information group, when sending the mail, the repeated sending of the mail for each recipient in the successfully sent recipient information group is not needed, so that the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of the user when sending the mail is better.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
FIG. 1 is a schematic diagram of a method for sending mail provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another method for sending mail provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another method for sending mail provided by embodiments of the present disclosure;
FIG. 4 is a schematic diagram of an apparatus for sending mail provided by an embodiment of the present disclosure;
fig. 5 is a schematic diagram of another apparatus for sending a mail according to an embodiment of the disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and claims of the embodiments of the disclosure and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
As shown in fig. 1, an embodiment of the present disclosure provides a method for sending a mail, including:
step S101, more than two addressee information are obtained;
step S102, grouping the addressee information under the condition of obtaining the sending instruction to obtain an addressee information group;
step S103, sending the mail according to the recipient information group;
step S104, obtaining the unsuccessfully sent recipient information group;
in step S105, the group of unsuccessfully transmitted recipient information is transmitted as a mail.
By adopting the method for sending the mail, which is provided by the embodiment of the disclosure, the recipient information is grouped to obtain the recipient information group by acquiring more than two pieces of recipient information under the condition of acquiring the sending instruction, the mail is sent according to the recipient information group, and the mail is sent to the recipient information group which is not sent successfully. In this way, by carrying out group sending on the recipients and resending the unsuccessfully sent recipient information group, when sending the mail, the repeated sending of the mail for each recipient in the successfully sent recipient information group is not needed, so that the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of the user when sending the mail is better.
Optionally, more than two recipient information are obtained through user entry. Optionally, more than two pieces of recipient information are selected from a preset address book data table; the address book data sheet stores the information of the addressee.
Alternatively, the sending instruction is obtained by the user clicking a send mail button.
Optionally, the recipient information includes a recipient mailbox address, and grouping the recipient information to obtain a recipient information group includes: acquiring a postbox suffix name of the receiver according to the receiver postbox address; and grouping the recipient information according to the postbox suffix name to obtain a recipient information group.
Optionally, the format of the recipient mailbox address is the login name @ host name. Where "@ hostname. Domain name" is a mailbox suffix name, for example: @163.com, @126.com, @ yahoo.com, @ sohu.com, @ qq.com, @ sina.com, @ hotmail.com, @ gmail.com, etc.
Optionally, grouping the recipient information according to the postbox suffix name to obtain a recipient information group, including: and determining the recipient information with the same postbox suffix name as the same recipient information group.
In some embodiments, the retrieved recipient information includes 192345678@ qq.com, 182345620@ qq.com, aaa @163.com, bbb @126.com, ccc @ yahoo.com, ddd @ sina.com, eee @ sohu.com, fff @126.com, ggg @163.com, hhh @ yahoo.com, kkk @ sina.com, 283450233@ qq.com, and the like; determining the recipient information with the same postbox suffix name as the same recipient information group, namely, dividing 192345678@ qq.com, 182345620@ qq.com and 283450233@ qq.com into the same recipient information group, aaa @163.com and ggg @163.com being the same recipient information group, bbb @126.com and fff @126.com being the same recipient information group, ccc @ yahoo.com and hhh @ yahoo.com being the same recipient information group, eee @ sohu.com being one recipient information group, and ddd @ sina.com and kkk @ sina.com being the same recipient information group.
In some embodiments, there may be different time delays when sending mail to different postfix email addresses; and the mailbox addresses with the same suffix name are determined as the same recipient information group, the order of sending the mails to each recipient information group is set according to the delay time of sending the mails of each recipient information group, and the time of receiving the mails by each recipient can be controlled.
Optionally, the setting of the order of sending the mails by the recipient information groups according to the delay time of sending the mails by the recipient information groups includes: and sending the mails to the recipient information groups in sequence according to the sequence from long to short delay time of sending the mails of the recipient information groups.
Optionally, the recipient information includes a recipient mailbox address, and grouping the recipient information to obtain a recipient information group includes: matching a grouping name corresponding to a receiver mailbox address in a preset address list data table; grouping the addressee information according to the grouping name to obtain an addressee information group; the address list data table stores the corresponding relation between the address of the receiver mailbox and the grouping name. An example table of the address book data table shown in table 1:
Figure BDA0002627739750000051
Figure BDA0002627739750000061
TABLE 1
Optionally, grouping the recipient information according to the grouping name to obtain a recipient information group, where the grouping includes: and determining the first recipient information with the same grouping name as the same recipient information group.
In some embodiments, where it is desired to send mail to multiple recipient messages, for example: 192345678@ qq.com, 182345620@ qq.com, aaa @163.com, bbb @126.com, ccc @ yahoo.com, ddd @ sina.com, eee @ sohu.com, fff @126.com, ggg @163.com, and the like; and determining the first recipient information with the same grouping name as the same recipient information group. By matching the packet name corresponding to the recipient mailbox address from table 1, for example: 192345678@ qq.com corresponds to "classmate", 182345620@ qq.com corresponds to "classmate", aaa @163.com corresponds to "colleague", bbb @126.com corresponds to "colleague", ccc @ yahoo.com corresponds to "colleague", ddd @ sina.com corresponds to "friend", eee @ sohu.com corresponds to "friend", fff @126.com corresponds to "friend", ggg @163.com corresponds to "friend", hhh @ yahoo.com corresponds to "colleague", kkk @ sina.com corresponds to "friend", 283450233@ qq.com corresponds to "colleague"; determining two recipient information 192345678@ qq.com and 182345620@ qq.com which both correspond to "classmates" as the same recipient information group; determining aaa @163.com, bbb @126.com, ccc @ yahoo.com, hhh @ yahoo.com and 283450233@ qq.com, all corresponding to "colleagues", as the same recipient information group; and determining ddd @ single.com, eee @ sohu.com, fff @126.com, ggg @163.com and kkk @ single.com which all correspond to the 'friends' as the same addressee information group.
Optionally, grouping the recipient information to obtain a recipient information group, further including: grouping the recipient information according to the postbox suffix name to obtain recipient information pre-grouping; and grouping the addressee information in the addressee information pre-grouping according to the grouping name to obtain an addressee information group. Therefore, the recipient information group can be divided into more fine groups, so that the acquired recipient information of the unsuccessfully sent mails can be more accurate.
In some embodiments, the retrieved recipient information includes 192345678@ qq.com, 182345620@ qq.com, aaa @163.com, bbb @126.com, ccc @ yahoo.com, ddd @ sina.com, eee @ sohu.com, fff @126.com, ggg @163.com, hhh @ yahoo.com, kkk @ sina.com, 283450233@ qq.com, and the like; determining recipient information with the same mailbox suffix name as the same recipient information pre-packet, namely determining 192345678@ qq.com, 182345620@ qq.com and 283450233@ qq.com as the same recipient information pre-packet, aaa @163.com and ggg @163.com as the same recipient information pre-packet, bbb @126.com and fff @126.com as the same recipient information pre-packet, ccc @ yahoo.com and hhh @ yahoo.com as the same recipient information pre-packet, eee sohu.com as one recipient information pre-packet, ddd @ sina.com and kkk @ sina.com as the same recipient information pre-packet; the grouping names of the recipient information in the recipient information pre-grouping are obtained through a query table 1, and the recipient information with the same grouping name is determined to be the same recipient information group, namely 192345678@ qq.com and 182345620@ qq.com are the same recipient information group, 283450233@ qq.com is one recipient information group, aaa @163.com is one recipient information group, ggg @163.com is one recipient information group, eee @ sobu.com is one recipient information group, and dded @ sina.com and kkksina.com are the same recipient information group.
Optionally, sending the mail according to the recipient information group includes: and calling an interface, such as JavaMail (programming interface related to processing the e-mail), for each recipient information group in sequence, and sending the e-mail according to the group.
Optionally, obtaining the group of recipient information that is not successfully sent includes: acquiring a mail sending state of a recipient information group; and acquiring the unsuccessfully sent recipient information group according to the mail sending state.
Optionally, the obtaining the mail sending status of the recipient information group includes: and after the mail of each recipient information group is sent, returning to the corresponding mail sending state of the group when each recipient information group calls the interface. Optionally, the mail transmission status includes transmission success or transmission failure.
Optionally, obtaining the group of unsuccessfully sent recipient information according to the sending status of the mail includes: and the mail sending state is that the recipient information group corresponding to the failed sending is the unsuccessfully sent recipient information group.
Optionally, the group of unsuccessfully sent recipient information includes at least one piece of recipient information of unsuccessfully sent mail.
Therefore, the mail sending state returned by the calling interface is used for obtaining the receiver information group which is not sent successfully, and only the receiver information group which is not sent successfully is sent again, so that the repeated sending of the mail for each receiver in the receiver information group which is sent successfully is not needed, the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of a user in sending the mail is better.
Optionally, when sending the email according to the recipient information group, the method further includes: monitoring a network connection state; and under the condition that the network connection state is a disconnection state, acquiring the unsuccessfully sent recipient information group.
Optionally, monitoring the network connection status comprises: sending heartbeat packets to a server according to a preset time interval, and judging whether data packets returned by the server according to the heartbeat packets are received within preset time after the heartbeat packets are sent; if so, determining to keep a connection state with the server; otherwise, the disconnection with the server is determined.
In some embodiments, in the process of group sending the mail, under the condition that the mail sending of a part of recipients fails due to sudden network interruption, the mail sending state of the recipient information group is obtained; and the recipient information group corresponding to the mail sending state being the failure state is the unsuccessfully sent recipient information group.
Optionally, the group of unsuccessfully sent recipient information further includes a group of recipient information for which no mail is sent before the network interruption.
Optionally, after obtaining the group of recipient information that is not successfully sent, the method further includes: and under the condition that the network connection state is recovered to be the connection state, sending the mail to the unsuccessfully sent recipient information group.
In some embodiments, after the network is interrupted, a group of unsuccessfully sent recipient information is obtained; and under the condition that the network recovers the connection state, the mail is sent again to the unsuccessfully sent recipient information group. Optionally, the interface is sequentially called for each group of the unsuccessfully sent recipient information, and the mail is sent according to the group. Therefore, when the mail is sent in a group, under the condition that the mail sending to a part of recipients fails due to the network disconnection, after the network is reconnected, the mail can be sent again only aiming at the recipient information group which is not sent successfully, and the repeated sending of the mail to each recipient in the recipient information group which is sent successfully is not needed, so that the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of a user in sending the mail is better.
With reference to fig. 2, in practical application, the method for sending the email provided by the embodiment of the present disclosure includes the following specific steps:
step S201, obtaining X pieces of recipient information input by a user; wherein X is more than or equal to 2 and is a positive integer;
step S202, grouping the X pieces of recipient information to obtain M pieces of recipient information groups; for example: determining the recipient information with the same mailbox suffix name as the same recipient information group; wherein M is a positive integer;
step S203, sequentially calling interfaces, such as JavaMail, for each recipient information group, and sending mails according to the recipient information group by an SMTP (Simple Mail Transfer Protocol);
step S204, monitoring the network connection condition and judging whether the network is disconnected under the condition of sending the mail to the Nth group of receiver information group, if so, executing step S205, and if not, executing step S206; wherein N is less than or equal to M and is a positive integer;
step S205, the mail sending is abnormal, exits the group mail sending program, and then executes step S207;
step S206, continuing to send the next group of recipient information until all the recipient information is sent; then, step S211 is executed;
step S207, returning a mail sending failure state corresponding to the Nth group of recipient information groups; the Nth group of recipient information groups are the unsuccessfully sent recipient information groups;
step S208, obtaining the unsuccessfully sent recipient information group, and grouping the unsuccessfully sent recipient information into a database; the unsuccessfully sent recipient information group comprises an Nth group of recipient information group and a recipient information group which does not send the mail before the network interruption;
step S209, monitoring a network connection condition, and determining whether the network recovers the connection state, if yes, performing step S210, and if no, performing step S211;
step S210, the mail is sent again to the unsuccessfully sent recipient information group until all unsuccessfully sent recipient information groups are sent successfully, and then step S211 is executed;
in step S211, the mass mail is terminated.
By adopting the method for sending the mails, based on JavaMail and SMTP protocols, in the process of group sending the mails, under the condition that the network is suddenly interrupted to cause that the mails sent to partial addressee information are unsuccessful, after the network is recovered, the mails can be sent again only aiming at the addressee information groups which are not successfully sent, and the mails of all addressees in the addressee information groups which are successfully sent are not required to be sent repeatedly. The method not only solves the problem that partial receivers do not receive the mails due to the fact that the user is in the mail group sending process, but also improves the efficiency of resending the mails under the condition that the network is disconnected in the mail group sending process, reduces the occupation of server resources and improves the experience of the user in the mail group sending process.
In some embodiments, JavaMail is a Programming Interface provided to developers for handling e-mail, i.e., an API (Application Programming Interface) for handling e-mail. JavaMail can conveniently perform some of the usual mail transfers.
In some embodiments, SMTP is a protocol that provides reliable and efficient email transmission. SMTP is a mail service established on the FTP (File Transfer Protocol) File Transfer service, and is mainly used for mail information Transfer between systems and providing notification about incoming messages. SMTP is independent of the specific transport subsystem and requires only reliable and ordered data stream channel support, and one of the important features of SMTP is its ability to transport mail across the network, i.e., "SMTP mail relay". The SMTP can realize the mail transmission between the same network processing processes, and can also realize the mail transmission between a certain processing process and other networks through a repeater or a gateway.
With reference to fig. 3, in practical application, the method for sending the email provided by the embodiment of the present disclosure includes the following specific steps:
step S301, obtaining X pieces of recipient information input by a user; wherein X is more than or equal to 2 and is a positive integer;
step S302, grouping the X pieces of recipient information to obtain M pieces of recipient information groups; for example: determining the recipient information with the same grouping name as the same recipient information group; wherein M is a positive integer;
step S303, sequentially calling interfaces, such as JavaMail, for each recipient information group, and sending mails according to the recipient information group by an SMTP (Simple Mail Transfer Protocol);
step S304, acquiring the mail sending state corresponding to each recipient information group, and judging whether the mail sending state corresponding to each recipient information group is successful, if not, executing step S305, and if so, executing step S307;
step S305, obtaining a receiver information group which is not successfully sent, namely a receiver information group corresponding to the mail sending state being a failure state, and storing the receiver information group which is not successfully sent into a database; then, step S306 is executed;
step S306, resending the mail for the addressee information group which is not sent successfully in the database; optionally, sequentially calling interfaces for the unsent recipient information groups in the database, and sending the mails again according to the groups until all the unsent recipient information groups are sent with mails completely;
in step S307, the mass mail is terminated.
The method comprises the steps of obtaining more than two pieces of recipient information, grouping the recipient information under the condition of obtaining a sending instruction to obtain a recipient information group, sending mails according to the recipient information group, and sending mails to the recipient information group which is not sent successfully. In this way, by carrying out group sending on the recipients and resending the unsuccessfully sent recipient information group, when sending the mail, the repeated sending of the mail for each recipient in the successfully sent recipient information group is not needed, so that the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of the user when sending the mail is better.
As shown in fig. 4, an apparatus for sending a mail includes a first obtaining module 401, a grouping module 402, a sending module 403, and a second obtaining module 404. The first obtaining module 401 is configured to obtain more than two pieces of recipient information; the grouping module 402 is configured to group the recipient information to obtain a recipient information group in the case of obtaining the sending instruction; the sending module 403 is configured to send the mail according to the recipient information group; the second obtaining module 404 is configured to obtain a group of recipient information that is not successfully sent; the sending module 403 is further configured to send the group of recipient information that was not sent successfully by mail.
By adopting the device for sending the mail, the first obtaining module is used for obtaining the information of more than two recipients, the grouping module is used for grouping the information of the recipients under the condition of obtaining the sending instruction to obtain the information group of the recipients, the sending module is used for sending the mail according to the information group of the recipients, and the sending module is used for sending the mail to the information group of the recipients which are not sent successfully. In this way, by carrying out group sending on the recipients and resending the unsuccessfully sent recipient information group, when sending the mail, the repeated sending of the mail for each recipient in the successfully sent recipient information group is not needed, so that the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of the user when sending the mail is better.
Optionally, the recipient information includes a recipient mailbox address, and the grouping module is configured to obtain a mailbox suffix name of the recipient according to the recipient mailbox address, and determine the recipient information with the same mailbox suffix name as the same recipient information group.
Optionally, the grouping module is configured to match a grouping name corresponding to a mailbox address of a recipient in a preset address book data table, and determine that the first recipient information with the same grouping name is the same recipient information group.
Optionally, the second obtaining module is configured to obtain a mail sending status of the recipient information group, and obtain the unsuccessfully sent recipient information group according to the mail sending status.
Optionally, the apparatus for sending a mail further includes a network monitoring module. The network monitoring module is configured to monitor a network connection status.
Optionally, when sending the mail according to the recipient information group, the network monitoring module triggers the second obtaining module to obtain the unsuccessfully sent recipient information group when monitoring that the network connection state is the disconnection state.
Optionally, after the unsuccessfully sent recipient information group is obtained, under the condition that the network monitoring module monitors that the network connection state is restored to the connection state, the sending module is triggered to send the unsuccessfully sent recipient information group by the mail.
As shown in fig. 5, an apparatus for sending a mail includes a processor (processor)100 and a memory (memory)101 storing program instructions. Optionally, the apparatus may also include a Communication Interface (Communication Interface)102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via a bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call program instructions in the memory 101 to perform the method for sending a mail of the above-described embodiment.
Further, the program instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 101 is used as a computer readable storage medium for storing software programs, computer executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing, i.e., implements the method for sending mail in the above-described embodiments, by executing program instructions/modules stored in the memory 101.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
By adopting the device for sending the mail, which is provided by the embodiment of the disclosure, the recipient information is grouped to obtain the recipient information group by acquiring more than two pieces of recipient information under the condition of acquiring the sending instruction, the mail is sent according to the recipient information group, and the mail is sent to the recipient information group which is not sent successfully. In this way, by carrying out group sending on the recipients and resending the unsuccessfully sent recipient information group, when sending the mail, the repeated sending of the mail for each recipient in the successfully sent recipient information group is not needed, so that the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of the user when sending the mail is better.
The embodiment of the disclosure provides a device, which comprises the above device for sending the mails.
Optionally, the device is a smartphone, tablet or computer, etc.
Optionally, the device is a server.
In some embodiments, where the device is a server, the server obtains the recipient information entered by the user via a smartphone, tablet, computer, or the like.
The device obtains more than two pieces of recipient information, groups the recipient information under the condition of obtaining a sending instruction to obtain a recipient information group, sends the mail according to the recipient information group, and sends the mail to the recipient information group which is not sent successfully. In this way, by carrying out group sending on the recipients and resending the unsuccessfully sent recipient information group, when sending the mail, the repeated sending of the mail for each recipient in the successfully sent recipient information group is not needed, so that the occupation of server resources is reduced, the efficiency of successfully sending the mail is improved, and the experience of the user when sending the mail is better.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for sending a mail.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above-described method for sending a mail.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for sending mail, comprising:
acquiring more than two addressee information;
under the condition of obtaining a sending instruction, grouping the recipient information to obtain a recipient information group;
sending the mail according to the recipient information group;
acquiring a receiver information group which is not successfully sent;
sending the unsuccessfully sent recipient information group by a mail;
the recipient information comprises a recipient mailbox address.
2. The method of claim 1, wherein grouping the recipient information to obtain a group of recipient information comprises:
acquiring a postbox suffix name of the receiver according to the receiver postbox address;
and grouping the recipient information according to the postbox suffix name to obtain a recipient information group.
3. The method of claim 2, wherein grouping the recipient information according to the postbox suffix name to obtain a recipient information group comprises:
and determining the recipient information with the same postbox suffix name as the same recipient information group.
4. The method of claim 1, wherein grouping the recipient information to obtain a group of recipient information comprises:
matching a grouping name corresponding to the receiver mailbox address in a preset address list data table;
grouping the recipient information according to the grouping name to obtain a recipient information group;
and the address book data table stores the corresponding relation between the address of the receiver mailbox and the grouping name.
5. The method of claim 4, wherein grouping the recipient information according to the grouping name to obtain a recipient information group comprises:
and determining the recipient information with the same grouping name as the same recipient information group.
6. The method of claim 1, wherein obtaining the set of unsuccessfully sent recipient information comprises:
acquiring the mail sending state of the recipient information group;
and acquiring the unsuccessfully sent recipient information group according to the mail sending state.
7. The method according to any one of claims 1 to 6, wherein when the mail is sent according to the recipient information group, the method further comprises:
monitoring a network connection state;
and under the condition that the network connection state is a disconnection state, acquiring the unsuccessfully sent recipient information group.
8. The method of claim 7, wherein obtaining the set of unsuccessfully sent recipient messages further comprises:
and under the condition that the network connection state is recovered to be the connection state, sending the mail to the unsuccessfully sent recipient information group.
9. An apparatus for sending mail comprising a processor and a memory storing program instructions, characterized in that the processor is configured to perform the method for sending mail according to any of claims 1 to 8 when executing the program instructions.
10. An arrangement for sending mail, characterized in that it comprises a device for sending mail according to claim 9.
CN202010802005.1A 2020-08-11 2020-08-11 Method, device and equipment for sending mails Active CN112039752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010802005.1A CN112039752B (en) 2020-08-11 2020-08-11 Method, device and equipment for sending mails

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010802005.1A CN112039752B (en) 2020-08-11 2020-08-11 Method, device and equipment for sending mails

Publications (2)

Publication Number Publication Date
CN112039752A CN112039752A (en) 2020-12-04
CN112039752B true CN112039752B (en) 2022-06-14

Family

ID=73578399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010802005.1A Active CN112039752B (en) 2020-08-11 2020-08-11 Method, device and equipment for sending mails

Country Status (1)

Country Link
CN (1) CN112039752B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001337902A (en) * 2000-05-30 2001-12-07 Sharp Corp Mail transmitting set, mail transmitting method, and recording medium recording its program
CN1328734A (en) * 1998-08-04 2001-12-26 奥普斯威夫网络公司 Efficient error control for wireless packet transmissions
CN101052018A (en) * 2007-05-16 2007-10-10 深圳市杰普林数码科技有限公司 Method for quick group sending mail on information terminal
CN103023758A (en) * 2012-12-17 2013-04-03 东莞宇龙通信科技有限公司 Terminal and information mass-sending method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1328734A (en) * 1998-08-04 2001-12-26 奥普斯威夫网络公司 Efficient error control for wireless packet transmissions
JP2001337902A (en) * 2000-05-30 2001-12-07 Sharp Corp Mail transmitting set, mail transmitting method, and recording medium recording its program
CN101052018A (en) * 2007-05-16 2007-10-10 深圳市杰普林数码科技有限公司 Method for quick group sending mail on information terminal
CN103023758A (en) * 2012-12-17 2013-04-03 东莞宇龙通信科技有限公司 Terminal and information mass-sending method

Also Published As

Publication number Publication date
CN112039752A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
JP5246332B2 (en) Enhanced messaging platform
US8285804B2 (en) Declassifying of suspicious messages
US8364181B2 (en) Electronic-mail filtering for mobile devices
KR101035472B1 (en) Content router
US7623515B2 (en) Content router notification
CN101785263B (en) Method and apparatus for electronic mail filtering
US20070014277A1 (en) Content router repository
CA2911989C (en) Method, system and apparatus for dectecting instant message spam
CN103491170B (en) Email reaches the method and system of prompting message
CN105813032A (en) Information sending method and server
JPWO2013008289A1 (en) Message processing system, message processing method, and program
RU2431888C2 (en) Message server and method of notifying user on incoming electronic message
US7054907B1 (en) Systems and methods for blocking delivery of an electronic communication
KR101650759B1 (en) Method and terminal for processing message service
CN112039752B (en) Method, device and equipment for sending mails
US10063648B2 (en) Relaying mobile communications
CN106850980B (en) The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal
US20110191427A1 (en) Communication method adapted for users using multiple communication facilities
KR20160131632A (en) Method and System for Sending and Receiving Push Data
CN111095889A (en) Multi-terminal message synchronization method, system, server and computer processing equipment
CN105634908B (en) E-mail processing system and method
EP2045986B1 (en) Method and device for collaborative electronic mail filtering
US9053464B2 (en) Information security method and appparatus
KR20090001524A (en) Terminal which distinguish recipient of email using specific identifier and method thereof
US20150127752A1 (en) Intelligent messaging method, apparatus and computer-readable storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant