CN110808902A - Data sending method, device and equipment - Google Patents

Data sending method, device and equipment Download PDF

Info

Publication number
CN110808902A
CN110808902A CN201911098974.7A CN201911098974A CN110808902A CN 110808902 A CN110808902 A CN 110808902A CN 201911098974 A CN201911098974 A CN 201911098974A CN 110808902 A CN110808902 A CN 110808902A
Authority
CN
China
Prior art keywords
sending
information
target
current
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911098974.7A
Other languages
Chinese (zh)
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.)
Shanghai Kai Tak Mdt Infotech Ltd
Original Assignee
Shanghai Kai Tak Mdt Infotech 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 Shanghai Kai Tak Mdt Infotech Ltd filed Critical Shanghai Kai Tak Mdt Infotech Ltd
Priority to CN201911098974.7A priority Critical patent/CN110808902A/en
Publication of CN110808902A publication Critical patent/CN110808902A/en
Pending legal-status Critical Current

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/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Abstract

The application provides a data sending method, a device and equipment, wherein the method comprises the following steps: when a data sending instruction is received, acquiring data information, current sending information and a receiving address corresponding to the sending instruction; acquiring target sending information corresponding to the current sending information according to a preset sending rule; and sending the data information to the receiving address according to the target sending information. According to the method and the device, other related target sending information is obtained according to the current sending information, and the data information is sent to the receiving address according to the changed target sending information.

Description

Data sending method, device and equipment
Technical Field
The present application relates to the field of information technology, and in particular, to a data transmission method, apparatus, and device.
Background
Email is an information exchange method in which a sender transmits digital information to one or more persons, and is the most widely used service of the internet. Through the e-mail system of the network, the user can contact the network users in any corner of the world in a very quick way.
The e-mail may be in various forms of text, images, sounds, etc. Meanwhile, the user can obtain a large amount of free news and special mails, and easy information search is realized. The existence of the e-mail greatly facilitates the communication between people and promotes the development of society.
In the existing e-mail sending process, the sender information can only be one user generally, or the mail sending address is unique, and once the user clicks to send, the sender information cannot be changed.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data sending method, apparatus and device, so as to obtain other target delivery information associated with current delivery information according to the current delivery information, and send the data information to the recipient address according to the changed target delivery information.
A first aspect of an embodiment of the present application provides a data sending method, including: when a data sending instruction is received, acquiring data information, current sending information and a receiving address corresponding to the sending instruction; acquiring target sending information corresponding to the current sending information according to a preset sending rule; and sending the data information to the receiving address according to the target sending information.
In an embodiment, the obtaining the data information, the current delivery information and the recipient address corresponding to the sending instruction includes: acquiring a first sending object corresponding to the sending instruction; and analyzing the first sending object to obtain the data information, the current sending information and the receiving address.
In an embodiment, the sending the data message to the recipient address according to the target delivery message includes: after the current sending information in the first sending object is replaced by the target sending information, generating a target sending object; and sending the target sending object according to the receiving address.
In an embodiment, the obtaining, according to a preset sending rule, target sending information corresponding to the current sending information includes: analyzing the current sending information to obtain the identity information of the current sending user; acquiring identity information of all target users having the same sending authority as the current sending user according to a preset incidence relation table and the identity information; and acquiring the target sending information of each target user.
In one embodiment, the sending information includes: a sending address and sending account information.
A second aspect of the embodiments of the present application provides a data transmission apparatus, including: the first acquisition module is used for acquiring data information, current delivery information and a receiving address corresponding to a data sending instruction when the data sending instruction is received; the second acquisition module is used for acquiring target sending information corresponding to the current sending information according to a preset sending rule; and the sending module is used for sending the data information to the receiving address according to the target sending information.
In one embodiment, the first obtaining module is configured to: acquiring a first sending object corresponding to the sending instruction; and analyzing the first sending object to obtain the data information, the current sending information and the receiving address.
In one embodiment, the sending module is configured to: after the current sending information in the first sending object is replaced by the target sending information, generating a target sending object; and sending the target sending object according to the receiving address.
In one embodiment, the second obtaining module is configured to: analyzing the current sending information to obtain the identity information of the current sending user; acquiring identity information of all target users having the same sending authority as the current sending user according to a preset incidence relation table and the identity information; acquiring the target sending information of each target user; the sender information includes: a sending address and sending account information.
A third aspect of embodiments of the present application provides an electronic device, including: a memory to store a computer program; the processor is configured to execute the method described in the first aspect and any embodiment of the present application, to obtain other target delivery information associated with the current delivery information according to the current delivery information, and to send the data information to the recipient address according to the changed target delivery information.
According to the data sending method, the data sending device and the data sending equipment, the data information, the current sending information and the receiving address corresponding to the sending instruction are obtained, then other related target sending information is obtained according to the current sending information, and the data information is sent to the receiving address according to the changed target sending information, so that the sending information in the mail is changed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the present application, the terms "first," "second," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
As shown in fig. 1, the present embodiment provides an electronic device 100, including: at least one processor 11 and a memory 12, one processor being exemplified in fig. 1. The processor 11 and the memory 12 are connected by a bus 10, and the memory 12 stores instructions executable by the processor 11, the instructions being executed by the processor 11 to change the current delivery information to other target delivery information and to send data information to the destination address according to the changed target delivery information.
In one embodiment, the data message sent may be an electronic MAIL (MAIL). The sending of e-Mail may rely on Simple Mail Transfer Protocol (SMTP), which is a Protocol that maintains the order of transmission and specifies what work is done between Mail servers, and aims to Transfer e-Mail reliably and efficiently. SMTP is independent of the delivery subsystem and is capable of relaying mail. SMTP is based on the following communication model: and establishing a bidirectional channel between the sender and the receiver based on an SMTP protocol according to the mail request of the user. The recipient may be the final recipient or an intermediate sender. The sender generates and sends a command, and the receiver returns response information to the sender.
After the connection between the sender and the receiver is established, the sender sends a MAIL command to indicate the sender, and if the receiver approves, an OK response is returned. The sender sends a code Rate matched truncated Turbo (RCPT) command to indicate the receiver, and if the receiver also recognizes, the receiver returns an OK response again. Otherwise, a rejection response is given (but the sending operation of the entire mail is not interrupted). When there are multiple addressees, both parties will repeat this many times. After this process is finished, the sender starts sending the mail content and terminates with a special sequence. If the receiver successfully processes the mail, an OK response is returned.
Please refer to fig. 2, which is a data sending method according to an embodiment of the present application, and the method may be executed by the electronic device 100 shown in fig. 1, and may be applied to the email sending scenario of the SMTP protocol, so as to obtain other target sending information associated with the current sending information according to the current sending information, and send the email to the receiving address according to the changed target by the sending information.
The method comprises the following steps:
step 201: and when a data sending instruction is received, acquiring data information, current sending information and a receiving address corresponding to the sending instruction.
In this step, taking the example of sending the Email by using the Spring Email, the core of the Spring Email abstraction is the mailsend interface. Spring has its own implementation of MailSender, JavMailSenderImpl, which uses the JavaMail API to send Email. Before sending Email, the Spring application must assemble javamailsendermpl as a bean in the Spring application context.
And the same user A adopts the mail content edited by Spring, and after the user A clicks and sends the mail, the sender information of the electronic mail is the information of the user A. If a plurality of person signatures under the same department are required to be sent, namely, sender information needs to be changed, and the sending of a plurality of sender information is allowed. When a data sending instruction is received, the sending instruction is intercepted first, and then data information, current sending information and a receiving address corresponding to the sending instruction are obtained. The data information can be mail content, including mail body and attachment information. In one embodiment, the dispatch information includes: a sending address and sending account information.
Step 202: and acquiring target sending information corresponding to the current sending information according to a preset sending rule.
In this step, the delivery information of the user a is the current delivery information, and the delivery information of a plurality of persons in the same department is the target delivery information. The mail sending authority of the user a may be set in advance, for example, as long as the user a edits the mail content to send, the mail may be sent with the mail sending information of all the persons in the department where the user a is located. After the sending instruction is intercepted, the sending information of the user A can obtain the sending information of all the personnel in the department where the corresponding user A is located.
Step 203: and sending the data information to the receiving address according to the target sending information.
In this step, after the information of the target sender is obtained, the original sending information can be changed, that is, the mail is not sent according to the sending information of the user a, but the mail content is sent to the original sending address according to the sending information of all the personnel in the same department of the user a.
According to the data sending method, the data information, the current sending information and the receiving address corresponding to the sending instruction are obtained, then other related target sending information is obtained according to the current sending information, and the data information is sent to the receiving address according to the changed target sending information, so that the sending information in the mail is changed.
Please refer to fig. 3, which is a data sending method according to an embodiment of the present application, and the method may be executed by the electronic device 100 shown in fig. 1, and may be applied to the email sending scenario by SMTP, so as to obtain other target sending information associated with the current sending information according to the current sending information, and send the email to a receiving address according to the changed target sending information. The method comprises the following steps:
step 301: and when a data sending instruction is received, acquiring a first sending object corresponding to the sending instruction.
In this step, referring to the description in step 201, taking the example of sending an Email by using Spring Email, when receiving a data sending instruction, first intercepting the sending instruction, and then extracting a first sending object carried by the sending instruction. The Session object of javamailsendermpl is used for storing information about a user, a variable stored in the Session object stores information of a single user, the information stored in the Session object is usually a name, an id and other parameters of the user, and the first transmission object can be realized by the Session object.
Step 302: and analyzing the first sending object to obtain the data information, the current sending information and the receiving address.
In this step, the first sending object includes relevant information of the current user a sending the mail, such as data information of the mail content, current sending information of the user a, and a receiving address of the current mail, where the receiving address may be a receiving mailbox address and/or an IP address of a receiving terminal. Therefore, by performing data analysis and recognition on the session object, the information can be read.
Step 303: and analyzing the current sending information to obtain the identity information of the current sending user.
In this step, the delivery information of user a is the current delivery information, and first, the delivery information of user a is subjected to data analysis, for example, information of the department or organization to which user a belongs, the mail sending authority thereof, the geographical location where user a is located, and the like are acquired according to the signature of user a.
Step 304: and acquiring the identity information of all target users having the same sending authority with the current sending user according to the preset incidence relation table and the identity information.
In this step, the mail transmission authority of the user a may be set in advance, and for example, as long as the user a transmits a mail, the destination person associated with the user a may also be a sender. The association may be performed according to the location, for example, if the user a is located in beijing, then associating the beijing with the personnel and the information of the sender of the same department or organization to which the user a belongs, and generating a preset association relationship table. After the identity information of the user a is obtained in step 303, the identity information of all target users having the same sending authority as the current sending user a, that is, the person information located in beijing and belonging to the same department or organization as the user a, can be queried in the preset association table.
Step 305: and acquiring target sending information of each target user.
In this step, the delivery information of the plurality of persons associated with the identity information of the user a is the target delivery information. After the target users are determined, the sending information of each target user, namely the target sending information, can be inquired in the preset association relation table, and the sending information can comprise the mail account and the password of the target user.
Step 306: and after the current sending information in the first sending object is replaced by the target sending information, generating a target sending object.
In this step, the session object in step 302 is generally a non-writable object, so that the information data of the session object can be copied, a readable and writable common object is created, and the copied information data is written into the common object. The current sender information in the public object may then be replaced with the target sender information, such as by reassigning the session object property of the JavaMailSenderImpl to replace the user a's current account and password. The replaced common object is the target sending object.
Step 307: sending the target sending object according to the receiving address
In this step, the target sending object includes the content information data of the current email, the target sending information, the receiving address and other information. The target sending object with changed sending information is sent according to the original receiving address, so that the effect of carrying information of a plurality of senders in one sending operation can be realized.
Please refer to fig. 4, which is a data sending apparatus 400 according to an embodiment of the present application, and the method can be applied to the electronic device 100 shown in fig. 1, and can be applied to the scenario of sending an e-mail by SMTP, so as to obtain other target sending information associated with the current sending information according to the current sending information, and send the e-mail to a receiving address according to the changed target sending information. The device includes: a first obtaining module 401, a second obtaining module 402 and a sending module 403, wherein the principle relationship of each module is as follows:
the first obtaining module 401 is configured to, when a data sending instruction is received, obtain data information, current delivery information, and a recipient address corresponding to the sending instruction. For details, refer to the description of step 201 in the above embodiment.
A second obtaining module 402, configured to obtain, according to a preset sending rule, target sending information corresponding to current sending information. For details, see the description of step 202 in the above embodiment.
And a sending module 403, configured to send the data message to the recipient address according to the target sending message. For details, see the description of step 203 in the above embodiment.
In an embodiment, the first obtaining module 401 is configured to: and acquiring a first sending object corresponding to the sending instruction. And analyzing the first sending object to obtain the data information, the current sending information and the receiving address. For details, refer to the descriptions of step 301 to step 302 in the above embodiments.
In one embodiment, the sending module 403 is configured to: and after the current sending information in the first sending object is replaced by the target sending information, generating a target sending object. And sending the target sending object according to the receiving address. For details, refer to the descriptions of step 306 to step 307 in the above embodiments.
In one embodiment, the second obtaining module 402 is configured to: and analyzing the current sending information to obtain the identity information of the current sending user. And acquiring the identity information of all target users having the same sending authority with the current sending user according to the preset incidence relation table and the identity information. And acquiring target sending information of each target user. The issuing information includes: a sending address and sending account information. For details, refer to the descriptions of step 303 to step 305 in the above embodiments.
An embodiment of the present invention further provides a storage medium readable by an electronic device, including: a program that, when run on an electronic device, causes the electronic device to perform all or part of the procedures of the methods in the above-described embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid-State Drive (SSD), or the like. The storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A data transmission method, comprising:
when a data sending instruction is received, acquiring data information, current sending information and a receiving address corresponding to the sending instruction;
acquiring target sending information corresponding to the current sending information according to a preset sending rule;
and sending the data information to the receiving address according to the target sending information.
2. The method of claim 1, wherein obtaining the data information, the current delivery information, and the recipient address corresponding to the delivery instruction comprises:
acquiring a first sending object corresponding to the sending instruction;
and analyzing the first sending object to obtain the data information, the current sending information and the receiving address.
3. The method of claim 2, wherein sending the data message to the recipient address according to the target delivery message comprises:
after the current sending information in the first sending object is replaced by the target sending information, generating a target sending object;
and sending the target sending object according to the receiving address.
4. The method according to claim 1, wherein the obtaining target sender information corresponding to the current sender information according to a preset sender rule comprises:
analyzing the current sending information to obtain the identity information of the current sending user;
acquiring identity information of all target users having the same sending authority as the current sending user according to a preset incidence relation table and the identity information;
and acquiring the target sending information of each target user.
5. The method of claim 1, wherein the dispatch information comprises: a sending address and sending account information.
6. A data transmission apparatus, comprising:
the first acquisition module is used for acquiring data information, current delivery information and a receiving address corresponding to a data sending instruction when the data sending instruction is received;
the second acquisition module is used for acquiring target sending information corresponding to the current sending information according to a preset sending rule;
and the sending module is used for sending the data information to the receiving address according to the target sending information.
7. The apparatus of claim 6, wherein the first obtaining module is configured to:
acquiring a first sending object corresponding to the sending instruction;
and analyzing the first sending object to obtain the data information, the current sending information and the receiving address.
8. The apparatus of claim 7, wherein the sending module is configured to:
after the current sending information in the first sending object is replaced by the target sending information, generating a target sending object;
and sending the target sending object according to the receiving address.
9. The apparatus of claim 1, wherein the second obtaining module is configured to:
analyzing the current sending information to obtain the identity information of the current sending user;
acquiring identity information of all target users having the same sending authority as the current sending user according to a preset incidence relation table and the identity information;
acquiring the target sending information of each target user;
the sender information includes: a sending address and sending account information.
10. An electronic device, comprising:
a memory to store a computer program;
a processor configured to execute the method according to any one of claims 1 to 5, to obtain other target delivery information associated with the current delivery information according to the current delivery information, and to send the data information to the recipient address according to the changed target delivery information.
CN201911098974.7A 2019-11-12 2019-11-12 Data sending method, device and equipment Pending CN110808902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911098974.7A CN110808902A (en) 2019-11-12 2019-11-12 Data sending method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911098974.7A CN110808902A (en) 2019-11-12 2019-11-12 Data sending method, device and equipment

Publications (1)

Publication Number Publication Date
CN110808902A true CN110808902A (en) 2020-02-18

Family

ID=69502152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911098974.7A Pending CN110808902A (en) 2019-11-12 2019-11-12 Data sending method, device and equipment

Country Status (1)

Country Link
CN (1) CN110808902A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651714A (en) * 2011-02-24 2012-08-29 腾讯科技(深圳)有限公司 Security method and device for mail addresses
CN102984675A (en) * 2012-11-21 2013-03-20 北京小米科技有限责任公司 Method and device for replying messages
CN104796323A (en) * 2015-03-26 2015-07-22 小米科技有限责任公司 E-mail sending method, mail server and mail client
US20190044903A1 (en) * 2013-10-03 2019-02-07 Oath Inc. Email frequency and consolidation assistant
CN109600369A (en) * 2018-12-07 2019-04-09 陈善席 A kind of communication management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651714A (en) * 2011-02-24 2012-08-29 腾讯科技(深圳)有限公司 Security method and device for mail addresses
CN102984675A (en) * 2012-11-21 2013-03-20 北京小米科技有限责任公司 Method and device for replying messages
US20190044903A1 (en) * 2013-10-03 2019-02-07 Oath Inc. Email frequency and consolidation assistant
CN104796323A (en) * 2015-03-26 2015-07-22 小米科技有限责任公司 E-mail sending method, mail server and mail client
CN109600369A (en) * 2018-12-07 2019-04-09 陈善席 A kind of communication management method and device

Similar Documents

Publication Publication Date Title
US11777885B2 (en) Encoding data in email headers
CN108156070B (en) Instant messaging method, device and system based on mail system
US8126484B2 (en) Apparatus and methods of sharing contact information between mobile communication devices using short message service
EP3402136B1 (en) Information interaction method, client and device
US9715676B2 (en) Method and system for confirming proper receipt of e-mail transmitted via a communications network
CN108055196B (en) Method, device and system for creating discussion group based on instant messaging
US7802304B2 (en) Method and system of providing an integrated reputation service
MX2014010229A (en) Systems and methods for sharing data among multiple end user devices.
CN114143282B (en) Mail processing method, device, equipment and storage medium
AU2009284000B2 (en) A communication device
CN102624640B (en) A kind of method and e-mail system sending mail
US20160366077A1 (en) E-mail processing
WO2011081755A2 (en) Electronic mail server and method for automatically generating address lists
CN102291328B (en) Support that multi-protocols are based on third party's mail account receiving/transmission method of webpage and system
CN103326927B (en) A kind of method and apparatus withholding mail
WO2018149340A1 (en) Recipient determination method utilized in email replying process, and device
CN106209582B (en) Message information processing method and device and terminal equipment
US9923857B2 (en) Symbolic variables within email addresses
CN110808902A (en) Data sending method, device and equipment
CN105207884A (en) Method of acquiring E-mail delivery state and apparatus thereof
CN109218162A (en) Mail distribution method and device
CN104202232A (en) Internet email processing method and device
CN202841524U (en) Mobile phone instant information receiving and sending system based on data communication mode
CN103686639A (en) Message processing method, device and system
US8117302B2 (en) Buddy list pruning for instant messaging system performance enhancement

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200218

RJ01 Rejection of invention patent application after publication