Background technology
In general mailing system, according to the regulation of related standards, the user is when sending e-mails, and address of the addressee must be write as specific form: pet name mail domain name." pet name " is addressee's e-mail accounts name, and " mail domain name " refers to the territory that the addressee registers mail service.No matter mobile phone users still is the fixed terminal user, remembers. and someone's addresses of items of mail all is the pretty troublesome thing of part.But for fixed terminal, because its memory space is bigger, so it can store a large amount of addresses of items of mail to help user's memory; And portable terminal is subjected to hardware constraints, its memory space is the comparison preciousness, so unlikely resemble and store a large amount of addresses of items of mail the fixed terminal and help user's memory, and telephone number is relatively succinct, if can make between the mobile phone users by the telephone number send Email, this has not only saved a large amount of memory spaces, and has solved the worry in user's memory.
Be illustrated in figure 1 as PHS (Personal Handyphone System, wireless local telephone system) system architecture of mail service, it is that unified Multimedia Message center is (a kind of based on carrier class mail service platform, it can be applied to multiple mobile communications network simultaneously, as PHS, 3G etc.) application of product on the PHS network.The nucleus module relevant with mail service is E-mail gateway (equipment of mail service is provided in the PHS mailing system), comprehensive mail transmission server, unified mail server, E-mail gateway has two agreement Access Layer: PDX (Pmail DX agreement, the data, services of Japan KDDI company invention. agreement) and M-IMAP (Mobile Internet Message Access Protocol, mobile internet information is obtained agreement), insert the mail terminal of use PDX agreement and the mail terminal of M-IMAP agreement respectively, other module is to finish the required supporting module of mail service.
E-mail gateway should directly store mail in addressee's the mailbox.For the PHS mail service, user's mailbox is to show accordingly in the database in form.Simultaneously, during the user mail Service Properties also all is stored in and shows accordingly in the database.Traditional PHS mail service will be used following two tables: comprise the user mail Service Properties table of user ID and user mail address (mail account) and the subscriber mailbox table that comprises user ID.
When a PHS mail user to another user's send Email, mail has arrived E-mail gateway by network, access server.At this moment, be divided into two kinds of situations according to addressee's mail domain attribute, E-mail gateway will be done different processing.
As can be seen, these two tables all rely on " user ID " this field and associate.
According to the standard criterion of current email service, the reference format of user's e-mail address is: pet name mail domain name.The electronic service that the PHS mailing system provides is also according to this enforcement of regulations.When E-mail gateway was received an envelope mail, it checked at first whether " the mail domain name " of address of the addressee is local domain, and check result has two kinds of results nothing but:
The mail domain name is a local domain, this means that sender and addressee belong to a territory together.At this moment, E-mail gateway goes user mail Service Properties table coupling addressee's the pet name, when finding the corresponding pet name, also just equal to find this addressee's user ID, E-mail gateway just can be stored in Mail Contents in the subscriber mailbox table table like this, and with addressee's the user ID index as content.
The mail domain name is not a local domain, this means that sender and addressee belong to different territories.At this moment, E-mail gateway is forwarded to this mail on the comprehensive mail transmission server, and comprehensive mail transmission server is forwarded to the purpose mailing system with this mail according to smtp protocol again.
Summary of the invention
The object of the present invention is to provide a kind of mail method of utilizing digital number to send and receive e-mail,, can utilize digital number to send and receive e-mail, be convenient to input and memory addresses of items of mail, and save system space to overcome above-mentioned the deficiencies in the prior art.
For achieving the above object, the invention provides a kind of method of utilizing digital number to send and receive e-mail, system is by placing the mapping table that has telephone number and pet name corresponding relation in it and the relation mapping table of telephone number area code and mail domain name, and the mail that digital number and area code is changed into pet name form is handled.
Wherein, system will check whether addressee's telephone number is with area code or mail domain name, if do not have, the addressee will look in system and the sender is the user of same area code or domain name.System is this territory user's a Email to the addressee, whether has this user's E-mail service data in the judgment data storehouse, if any, then E-mail gateway converts addressee's telephone number to the pet name, and changes the mail treatment flow process of pet name form over to.As not having, mail will no longer be further processed.For the addressee is not that this territory user and address are the forms of telephone number mail domain name, and system will be transmitted to comprehensive mail transmission server to the mail that this mail is considered as mailing to the Internet and handle.For the addressee is not that this territory user and address are the forms of telephone number, system finds out the corresponding mail domain name of addressee according to the telephone number area code that self disposes and the mapping relations table of mail domain name, and replacing unified domain name in the address of the addressee, mail is routed to corresponding mail domain and goes to handle then.
Another object of the present invention is to provide a kind of mailing system of utilizing digital number send and receive e-mail relevant with said method.
For achieving the above object, the invention provides a kind of mailing system of utilizing digital number to send and receive e-mail, comprise access server, E-mail gateway, database, comprehensive mail transmission server, unified mail server, it is characterized in that having in the database mapping table of telephone number and pet name corresponding relation, the relation mapping table of telephone number area code of configuration and mail domain name on the unified mail server.
Wherein, the relation mapping table of described telephone number area code and mail domain name is many-to-one relation.A described mail domain name can comprise a plurality of mailing systems.Described system can be a kind of mail server of wireless local telephone system.
The present invention has realized passing through between the PHS mail mobile phone users function of the mutual send Email of telephone number.When a user gives another user mail, he can be write as: " To:01065542030 ", " To:65542030 ", " To:nickname ", " To:nickname@utstar.com " or " 01065542030@utstar.com ", more than five kinds of forms all be legal.
Therefore, the present invention has simplified the address input of Email, has saved memory space, makes it be easy to memory and uses, and make the PHS electronic mail service be easier to vast ordinary consumption colony to use.
The present invention is further illustrated below in conjunction with accompanying drawing and embodiment.
Embodiment
Relevant detailed description of the present invention and technology contents, existing as follows with regard to accompanying drawings:
The present invention will make between the PHS mail cellphone subscriber can send out mail mutually by telephone number, and promptly in the PHS mailing system, phone number can be used as addressee's addresses of items of mail.The present invention need not change existing PHS mailing system structure, data store organisation, only needs to change the logical process flow process of mail service and introduce a notion: unified mail domain.
A PHS mailing system is exactly a mail domain, and a plurality of PHS mailing systems are exactly a plurality of mail domain.So, in fact be exactly that two users that belong to the different mail territory send out mail mutually when two users that belong to different PHS mailing systems send out mail mutually.Unified mail domain is exactly the mail domain of striding the PHS mailing system, and we can clearly define a unified mail domain can comprise several PHS mailing systems or mail domain, this means that the user of involved PHS mailing system belongs to it.As shown in Figure 1, unify the mail server module and realize unified mail domain function.The relation mapping table of telephone number area code of configuration and PHS mail domain name on the unified mail server, they are many-to-one relations, promptly have the corresponding PHS mail domain name of a plurality of area codes.
It below is three tables that the present invention uses: the user attribute table that comprises subscriber directory number and user ID; Comprise the mail service attribute list of user ID and user mail address (mail account) and comprise user ID subscriber mailbox table.
As can be seen, these three tables all rely on " user ID " this field and associate.
When a PHS mail user to another PHS mail user send Email, mail has arrived E-mail gateway by network, access server.As shown in Figure 2, at this moment, E-mail gateway will at first be checked the form of address of the addressee, if mail account is a pet name form, then mail changes the processing logic of pet name form over to; If then being divided into several situations, the telephone number form handles respectively:
E-mail gateway will check whether addressee's telephone number is with area code, if do not have, E-mail gateway will look the addressee and the sender is the user of areal, and the area code that is about to the sender is added on addressee's the telephone number.
Then E-mail gateway judges whether the addressee is this territory user, and promptly whether addressee and sender belong to a mail domain together, and this judgement is divided into dual mode:
If addressee's address is the form of telephone number mail domain name, E-mail gateway will judge whether " mail domain name " is this territory so.
If addressee's address is the form of telephone number, E-mail gateway will judge whether the area code of " telephone number " is the area code in this territory so.
If the addressee is this territory user, E-mail gateway will continue whether to have in the judgment data storehouse this user's E-mail service data, also be whether the user of this number has customized the PHS E-mail service.
If this customization the PHS E-mail service, E-mail gateway converts addressee's telephone number to the pet name so, and changes the mail treatment flow process of pet name form over to.
If this user does not customize the PHS E-mail service, mail will no longer be further processed, and promptly handling process leaves it at that.
If the addressee is not this territory user, promptly the sender belongs to different mail domain with the addressee, and E-mail gateway will be handled in two kinds of situation:
If addressee's address is the form of telephone number mail domain name, E-mail gateway will be transmitted to comprehensive mail transmission server to the mail that this mail is considered as mailing to the Internet and handle.
If addressee's address is the form of telephone number, E-mail gateway will be to the additional special mail domain name in addressee's address, and promptly unified mail domain converts it the addresses of items of mail of a standard to.For example, the telephone number of supposing the addressee is 01065542030, and unified mail domain name is utstar.com, becomes after the conversion: 01065542030@utstar.com.E-mail gateway is transmitted to comprehensive mail transmission server with this mail then, and comprehensive mail transmission server is transmitted to unified mail server with this mail again.Unified mail server is found out the corresponding mail domain name of addressee according to the telephone number area code that self disposes and the mapping relations table of mail domain name, and replaces the unified domain name in the address of the addressee, and mail is routed to corresponding mail domain and goes processing then.Here, the effect of unifying mail server is similar to the router in the IP network.
More than introduced operation flow of the present invention, in the concrete enforcement at phs terminal, mobile phone and unified Multimedia Message center (hereinafter to be referred as system) can have three kinds of agreements to finish according to the terminal digital number by network to carry out message dilivery.These three kinds of agreements are respectively PDX, M-IMAP and SMTP.Below introduce the idiographic flow of these three kinds of agreements respectively.
At first see also Fig. 3, this is the flow chart that the present invention adopts the embodiment of PDX agreement.In step 11, the mobile phone side is initiated to connect, multi-media messaging system transmitter ready notice.The PDX Mail Clients software and the multi-media messaging system of mobile phone side are successfully set up network linking, and system informs that the mobile phone side system is in ready attitude state, wait for mobile phone side initiation service request.The response to system in step 12 of mobile phone side is confirmed.The mobile phone side submit to send mail requests in the step 13, and request sends mail, and the additional Mail Contents of sending out in order back is 13912345678 and 01065541234 as the recipient address of mail, and mail header is test, and content type is a plain text.Behind get the mail transmission request and Mail Contents, behind (here and hereinafter said route information table comprise mapping table with telephone number and pet name corresponding relation and the relation mapping table of telephone number area code and mail domain name at least) corresponding routing iinformation of coupling, confirmed sending mail requests in step 14 by multi-media messaging system from route information table for multi-media messaging system.In the step 15, the mobile phone side is initiatively initiated request after operation is finished, and request disconnects the connection of homologous ray.In the following step 16, the system handles request is also returned result, and server disconnects respectively with client subsequently and being connected.
Consult Fig. 4, this is the flow chart that the present invention adopts the embodiment of M-IMAP agreement.In the step 21, the mobile phone side is successfully set up professional socket with the multi-media messaging system side and is linked, and the mobile phone side is informed by system, and it has been in ready attitude, is just waiting for that the mobile phone side initiates the service request of relevant multimedia mail.In the step 22, the mobile phone lateral system is initiated authentication request.In the step 23, system's indication authentication success.In the step 24, the mobile phone side begins to send mail to system, and the recipient address of input mail is pure phone number address, as 13912345678, sends then.After this multimedia mail is received by system, from route information table, search and destination address 13912345678 routing iinformation that is complementary, if the local domain user then directly sends to local reception side, otherwise the strange land mail domain attached in this back of 13912345678 this mail is sent, and then notice mobile phone side mail sends successfully in step 25 as the recipient address.In the step 26, mobile phone side reporting system, client is about to disconnect professional socket link.In the step 27, the request of mobile phone side is agreed by system, and server disconnects cover with the mobile phone side subsequently and is connected.
Consult Fig. 5, this is the flow chart that the present invention adopts the embodiment of smtp protocol.Step 31, multi-media messaging system inform that mobile phone side system side is in ready attitude, wait for mobile phone side initiation service request.Step 32, mobile phone tell that its mail domain of system is unified Multimedia Message center.Step 33, system inform that its territory of accepting the mobile phone side of mobile phone side is unified Multimedia Message center, and unified Multimedia Message center is exactly the territory of system itself.Step 34, mobile phone tell that its addresses of items of mail of system is that sender address is 13910111234.Step 35, the notifications mobile phone, the address is that 13910111234 sender is legal.Step 36, mobile phone tell that the mail reception person's of system address is 13910111235.Step 37, address are that 13910111235 recipient is legal.Step 38, mobile phone sends data, i.e. Mail Contents.Step 39, system inform the mobile phone side it know that follow-up data is a Mail Contents, Mail Contents with character ". " as end mark.Step 40, mobile phone sends Mail Contents to system, and wherein the e-mail sending address is 13910111234, and mail reception person is 13910111235, and message body is " Test mail ".System mates corresponding routing iinformation and this mail is sent from route information table.Step 41, system inform that mobile phone side mail has been received and has successfully been transmitted.Step 42, mobile phone tell system that it withdraws from operation this time.Step 43, system are informed the mobile phone side, and it has closed the service transmission channel.
Above introduce, it only is preferred embodiment of the present invention, can not limit scope of the invention process with this, be the variation of the equalization done according to the present invention of the those skilled in the art in the present technique field, for example each device among the above embodiment carried out function and replace or each step is made up.And the improvement known of those skilled in that art, all should still belong to the scope that patent of the present invention contains.