A kind of method and system realizing mail and instant message intercommunication
Technical field
The present invention relates to instant messaging, particularly relate to a kind of method and system realizing mail and instant message intercommunication.
Background technology
Email is a kind of common tool of routine office work, has application widely on the internet; Instant messaging service is also the widely used means of communication of one of new development, has huge user group at present.Above two kinds is all the conventional business of user's routine work life, but in practical application, user must log in E-mail address and just can check and accept Email; Same, user also must log in instant message client just can carry out instant messaging, and when the instant message client of user is not online, normally cannot receive instant message.
Under many circumstances, user only logs in instant message client, and does not log in E-mail address, like this when there being mail to produce, cannot check and accept in time, dally over one's work to mail; In instant communication process, if communication one side goes offline, the side that so goes offline normally cannot receive instant message, easily cause instant message to lose, thus reduce the Experience Degree of user.
Because above-mentioned two kinds of business exist drawback separately, therefore inconvenience can be brought to practical application.If electronic mail service and instant messaging service can be combined, realize the intercommunication of Email and instant message, so just can realize the complementation of above-mentioned two kinds of drawbacks.But prior art also cannot provide a kind of solution realizing Email and instant message intercommunication.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and system realizing mail and instant message intercommunication, to solve the problem that prior art cannot realize mail and instant message intercommunication.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method realizing mail and instant message intercommunication, the method comprises:
Instant message email interface server to the instant message content from instant message client, and receives from the e-mail messages of mail server;
Described instant message email interface server, according to the instant message identity information in instant message content, searches corresponding email address from server of instant message, and described instant message content is sent to corresponding mailbox; According to the email address in e-mail messages, search corresponding instant message identity information from server of instant message, and described e-mail messages is sent to corresponding instant message client.
The described email address searching correspondence from server of instant message, is specially:
Described instant message email interface server obtains the instant message identity information of peer user from instant message content, and to the email address of server of instant message request peer user, in described request, carry the instant message identity information of described peer user;
Described server of instant message is according to the instant message identity information in request, search the corresponding relation of subscriber mailbox address and the instant message identity information self stored, obtain the email address of peer user and return to described instant message email interface server.
Described instant message email interface server receives the e-mail messages from mail server, is specially:
Whether mail push server obtains the e-mail messages of user from described mail server, and online to user described in instant message email interface server requesting query;
Described request is transmitted to server of instant message by described instant message email interface server, obtains the whether online information of described user and be transmitted to mail push server from described server of instant message;
The information whether described mail push server is online according to user, when determining that user is online, sends to described instant message email interface server by the e-mail messages got from mail server.
The method comprises further: server of instant message is according to the email address in described inquiry request, search the corresponding relation of subscriber mailbox address and the instant message identity information self stored, obtain corresponding instant message identity information, and described instant message identity information and the whether online information of user are together sent to instant message email interface server.
The method comprises further: described instant message client, according to the active request of user, to transfer immediate news content to instant message email interface server; Or according to pre-configured strategy, after detecting to roll off the production line in the opposite end of instant messaging, to transfer immediate news content to instant message email interface server.
Present invention also offers a kind of system realizing mail and instant message intercommunication, this system comprises:
Instant message email interface server, for the instant message content from instant message client, and receives from the e-mail messages of mail server; According to the instant message identity information in instant message content, search corresponding email address from server of instant message, and described instant message content is sent to corresponding mailbox; According to the email address in e-mail messages, search corresponding instant message identity information from server of instant message, and described e-mail messages is sent to corresponding instant message client;
Instant message client, for the content that transfers immediate news to instant message email interface server, and receives the e-mail messages of described instant message email interface server transmission;
Mail server, for sending e-mail messages to instant message email interface server, and is sent to corresponding mailbox by the instant message content that described instant message email interface server provides;
Server of instant message, for providing the inquiry of email address and instant message identity information for described instant message email interface server.
This system comprises further: mail push server, for whether online to server of instant message requesting query user by instant message email interface server, and the information whether user returned by instant message email interface server according to server of instant message online, when determining that user is online, the e-mail messages got from mail server is sent to described instant message email interface server.
Invention additionally provides a kind of method transferred immediate news, and in order to described instant message is sent to a mail reception side, the method comprises:
Instant message email interface server receives the instant message content from instant message client;
Described instant message email interface server is according to the instant message identity information of the mail reception side in instant message content, search the email address corresponding with this instant message identity information from server of instant message, and described instant message content is sent to corresponding mailbox.
Invention additionally provides a kind of method sending mail, and in order to by described mail sending to instant message recipient, the method comprises:
Instant message email interface server receives the e-mail messages from mail server; Described instant message email interface server is according to the addresses of items of mail in i.e. e-mail messages, search the instant message identity information of the instant message recipient corresponding with this email address from server of instant message, and described instant message content is sent to corresponding instant message recipient.
Before instant Mail interface server receives e-mail messages, the method comprises further:
Whether mail push server obtains the e-mail messages of user from described mail server, and online to user described in instant message email interface server requesting query;
Described request is transmitted to server of instant message by described instant message email interface server, obtains the whether online information of described user and be transmitted to mail push server from described server of instant message;
The information whether described mail push server is online according to user, when determining that user is online, sends to described instant message email interface server by the e-mail messages got from mail server.
A kind of method and system realizing mail and instant message intercommunication provided by the present invention, by the instant message identity information of maintenance customer in server of instant message and the corresponding relation of addresses of items of mail, and between mailing system and immediate news systems, set up an instant message email interface server, achieve the intercommunication of Email and instant message.By the present invention, instant message content when the other side is not online, can be sent to the mailbox of the other side, avoids the loss of instant message by instant message user; The Mail Contents of user also can be sent in self online instant message by the mode pushed, and achieves checking and accepting in time Mail Contents.The intercommunication of mail and instant message, brings facility to practical application, adds the Experience Degree of user, improves the operating efficiency of user.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram realizing mail and instant message intercommunication of the present invention;
Fig. 2 is the flow chart that in the embodiment of the present invention, instant message is sent to mailing system;
Fig. 3 is the flow chart that in the embodiment of the present invention, Mail Contents is pushed to immediate news systems;
Fig. 4 is a kind of composition structural representation realizing the system of mail and instant message intercommunication of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
A kind of method realizing mail and instant message intercommunication provided by the present invention, as shown in Figure 1, mainly comprises the following steps:
Step 101, instant message email interface server to the instant message content from instant message client, and receives from the e-mail messages of mail server.
When instant message client needs instant message content to be sent to the mailbox of instant messaging peer user, instant message content is sent to instant message email interface server, to realize forwarding; When the instant message client of user is online, the e-mail messages receiving this user is sent to instant message email interface server by mail server, to be forwarded to the instant message client of this user.
Step 102, instant message email interface server, according to the instant message identity information in instant message content, searches corresponding email address from server of instant message, and instant message content is sent to corresponding mailbox; According to the email address in e-mail messages, search corresponding instant message identity information from server of instant message, and e-mail messages is sent to corresponding instant message client.
Instant message email interface server is connected by interface with between mailing system and immediate news systems, forwards, and then realize the intercommunication of mailing system and immediate news systems in order to the cross-system realizing mail and instant message.
Be sent to the flow process of mailing system below for instant message content, be described the method realizing mail and instant message intercommunication shown in Fig. 1, as shown in Figure 2, the flow process that instant message content is sent to mailing system mainly comprises the following steps:
Step 201, instant message content is sent to instant message email interface server by instant message client.
According to actual needs, instant message client according to the active request of user, can perform operation instant message content being sent to instant message email interface server; According to pre-configured strategy, can certainly detect at instant message client and automatically perform operation instant message content being sent to instant message email interface server after rolling off the production line in the opposite end of instant messaging.In addition, also annex can be comprised in instant message content of the present invention.
Step 202 ~ 203, instant message email interface server obtains the email address of peer user from server of instant message.
Instant message email interface server is to the email address of server of instant message request peer user, carry the instant message identity information of peer user in this request, this instant message identity information obtains from from the instant message content of instant message client; After server of instant message receives this request, according to the instant message identity information in request, search the corresponding relation of subscriber mailbox address and the instant message identity information self stored, to obtain the email address of corresponding peer user, thus the email address of the peer user obtained is returned to instant message email interface server.
Step 204, the email address of the peer user of acquisition and instant message content are sent to mail server by instant message email interface server.
Instant message content according to the email address of peer user, and is sent to the mailbox of peer user by mail server by Simple Mail Transfer protocol (SMTP, Simple Mail Transfer Protocol).Sending successfully, instant message email interface server can inform instant message client, sends successfully to point out user's instant message content.
This method instant message content being supplied to instant messaging peer user with lettergram mode, can prevent the loss of instant message content, avoids online due to peer user and situation that is that cause receiving instant message produces.
The flow process being pushed to immediate news systems for Mail Contents is more below described, and as shown in Figure 3, the flow process that Mail Contents is pushed to immediate news systems mainly comprises the following steps:
Step 301, mail push server gets the e-mail messages of user from mail server.
The e-mail messages obtained comprises the content of mail, and the annex of mail etc.
Step 302, whether mail push server is online to this user of instant message email interface server requesting query.
Whether mail push server sends the status query request for this user to instant message email interface server, online with the instant message client inquiring about this user.Wherein, need to carry to should the email address of user in the status query request of transmission.
Step 303, request forward whether online for inquiring user to server of instant message, and is obtained the whether online information of this user from server of instant message by instant message email interface server.
After server of instant message receives status query request, the information whether online according to the instant message client of the email address acquisition respective user in this request, and the information of acquisition is returned to instant message email interface server; In addition, server of instant message also needs according to the email address in this request, search the corresponding relation of subscriber mailbox address and the instant message identity information self stored, to obtain the instant message identity information corresponding with the email address in this request, and the instant message identity information obtained and the whether online information of user are together sent to instant message email interface server.
Step 304, the information whether user that server of instant message returns by instant message email interface server is online, and the instant message identity information of user is transmitted to mail push server.
Step 305, the e-mail messages of the respective user got from mail server, according to the information received, when determining that user is online, is sent to instant message email interface server by mail push server.
The information whether mail push server is online according to the user received, if it is not online to be defined as user, then without the need to the e-mail messages of respective user is sent to instant message email interface server, directly terminates whole flow process; If it is online to be defined as user, then the email address corresponding to e-mail messages, sends to instant message email interface server by the e-mail messages of respective user.
Step 306, the e-mail messages of reception is sent to the instant message client of respective user by instant message email interface server.
After instant message email interface server receives e-mail messages, by the email address in this information, mate with the email address that self obtains in step 303, to obtain the instant message identity information of respective user, and according to the instant message identity information of respective user obtained, this e-mail messages is sent to the instant message client of user.
Online instant message client is after receiving the e-mail messages from instant message email interface server, namely check and accept by interface prompts user, thus achieve object e-mail messages being supplied to online user by the mode of instant message, make online user can check and accept mail in time, improve operating efficiency.
For realizing the method for above-mentioned mail and instant message intercommunication, present invention also offers a kind of system realizing mail and instant message intercommunication, as shown in Figure 4, this system comprises: instant message email interface server 10, instant message client 20, mail server 30 and server of instant message 40.
Instant message email interface server 10, for the instant message content from instant message client 20, and receives from the e-mail messages of mail server 30; According to the instant message identity information in instant message content, search corresponding email address from server of instant message 40, and instant message content is sent to corresponding mailbox; According to the email address in e-mail messages, search corresponding instant message identity information from server of instant message 40, and e-mail messages is sent to corresponding instant message client 20.
Instant message client 20, connects instant message email interface server 10, for the content that transfers immediate news to instant message email interface server 10, and receives the e-mail messages of instant message email interface server 10 transmission.
Mail server 30, connects instant message email interface server 10, and for sending e-mail messages to instant message email interface server 10, and the instant message content provided by instant message email interface server 10 is sent to corresponding mailbox.
Server of instant message 40, connects instant message email interface server 10, for providing the inquiry of email address and instant message identity information for instant message email interface server 10.The corresponding relation of subscriber mailbox address and instant message identity information is stored in this server of instant message 40.
Preferably, this system comprises mail push server 50 further, connect instant message email interface server 10 and mail server 30, for whether online to server of instant message 40 requesting query user by instant message email interface server 10, and the information whether user returned by instant message email interface server 10 according to server of instant message 40 online, when determining that user is online, the e-mail messages got from mail server 30 is sent to instant message email interface server 10.
In addition, instant message client 20 is also connected with server of instant message 40, in order to realize the instant messaging between common instant message client 20.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.