CN105608559B - Method and system for generating multi-language mail - Google Patents

Method and system for generating multi-language mail Download PDF

Info

Publication number
CN105608559B
CN105608559B CN201510999918.6A CN201510999918A CN105608559B CN 105608559 B CN105608559 B CN 105608559B CN 201510999918 A CN201510999918 A CN 201510999918A CN 105608559 B CN105608559 B CN 105608559B
Authority
CN
China
Prior art keywords
mail
code
module
language
content
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
CN201510999918.6A
Other languages
Chinese (zh)
Other versions
CN105608559A (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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201510999918.6A priority Critical patent/CN105608559B/en
Publication of CN105608559A publication Critical patent/CN105608559A/en
Application granted granted Critical
Publication of CN105608559B publication Critical patent/CN105608559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (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 invention provides a method and a system for generating a multi-language mail, wherein the method comprises a mail configuration stage and a mail creation stage; wherein, the mail configuration stage comprises: configuring a mail subject and mail content through a mail configuration center to form a mail template, and respectively configuring a language code, a department code and a function code for the mail subject and the mail content in the process of forming the mail template; a mail creation phase comprising: loading a mail template from a mail configuration center; the system comprises a mail creating module, a language code loading module, a department code loading module, a function code generating module and a function module, wherein the language used by the created mail is loaded according to the language code, the department for creating the mail is loaded according to the department code, and the function module corresponding to the function code is loaded according to the function code to realize the function in the mail; and replacing the dynamically loaded content in the mail subject and the mail content with the predefined content. The invention can be used for compiling and deploying without modifying the program again when generating the mail.

Description

Method and system for generating multi-language mail
Technical Field
The present invention relates to the field of email generation technologies, and in particular, to a method and a system for generating a multilingual email.
Background
In a manufacturing-type enterprise level software, the vendor management module communicates with vendors in different languages in different countries, such as: enquiry, bid, order reply, delivery reply, etc., the content of the mail notification needs to be presented to the other party in different languages. The existing method skips according to the language when generating the mail to generate the mail with different languages, and the method has the disadvantages that the title and the content of the mail are written in a program, the program needs to be modified again for compiling and deploying every time the mail format, the content and other operations are changed, and the management of a supplier management module is very inconvenient.
Disclosure of Invention
In view of the above problems, it is an object of the present invention to provide a method and system for generating multilingual mail, which solves the above problems identified in the background art.
The invention provides a generating method of a multi-language mail, which comprises a mail configuration stage and a mail creation stage; wherein the content of the first and second substances,
a mail configuration phase, comprising:
configuring a mail subject and mail content through a mail configuration center to form a mail template, wherein in the process of forming the mail template, the mail subject and the mail content are respectively configured with a language code, a department code and a function code;
a mail creation phase comprising:
loading a mail template from a mail configuration center; the system comprises a mail creating module, a language code loading module, a department code loading module, a function code generating module and a function module, wherein the language used by the created mail is loaded according to the language code, the department for creating the mail is loaded according to the department code, and the function module corresponding to the function code is loaded according to the function code to realize the function in the mail;
and replacing the dynamically loaded content in the mail template with the predefined content.
The invention also provides a system for generating the multi-language mail, which comprises the following steps:
the mail template configuration unit is used for configuring a mail subject and mail content through a mail configuration center to form a mail template, wherein the mail template configuration unit comprises: the system comprises a language code configuration module, a mail processing module and a mail processing module, wherein the language code configuration module is used for respectively configuring the language codes of a mail subject and mail content; the department code configuration module is used for respectively configuring the department codes for the mail subject and the mail content; the function code configuration module is used for respectively configuring the function codes for the mail subject and the mail content;
the mail template loading unit is used for loading a mail template from a mail configuration center; wherein, the mail template loading unit comprises: the language loading module is used for loading the language used by the created mail according to the language code; the department loading module is used for loading and creating the department of the mail according to the department code; the function loading module is used for loading the function realized by the function module corresponding to the function code in the mail according to the function code;
and the content information replacing unit is used for replacing the dynamically loaded content in the mail subject and the mail content with the predefined content.
By using the method and the system for generating the multi-language mail, the multi-language mail is sent by configuring the mail template, and when the mail subject or the mail content needs to be modified, only the dynamically loaded part in the mail template needs to be replaced without modifying a program again for compiling and deploying.
To the accomplishment of the foregoing and related ends, one or more aspects of the invention comprise the features hereinafter fully described and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail certain illustrative aspects of the invention. These aspects are indicative, however, of but a few of the various ways in which the principles of the invention may be employed. Further, the present invention is intended to include all such aspects and their equivalents.
Drawings
Other objects and results of the present invention will become more apparent and more readily appreciated as the same becomes better understood by reference to the following description and appended claims, taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for generating a multilingual email according to an embodiment of the present invention;
fig. 2 is a schematic logical structure diagram of a multilingual mail creation system according to an embodiment of the present invention.
The same reference numbers in all figures indicate similar or corresponding features or functions.
Detailed Description
In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It may be evident, however, that such embodiment(s) may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to facilitate describing one or more embodiments.
Aiming at the problems in the background technology, the invention loads the mail template by configuring a universal mail template when establishing a new mail, the mail template acquires and loads the language required to be used according to the application environment, the mail template comprises fixed loading content and dynamic loading content, the dynamic loading content is replaced by predefined content, the creation of the new mail is completed, and the content of the new mail is displayed for the language required to be used.
Fig. 1 shows a flow of a multilingual mail creation method according to an embodiment of the present invention.
As shown in fig. 1, the method for generating a multilingual email according to the embodiment of the present invention includes an email configuration stage and an email creation stage; the mail configuration stage is used for configuring the mail template, the mail creation stage is used for loading the configured mail template, acquiring the language to be used according to the mail template, and replacing the dynamically loaded content with the predefined content actually wanted to be loaded.
In the mail configuration stage, the method comprises the following steps:
step S101: configuring a mail subject and mail content through a mail configuration center to form a mail template, wherein in the process of forming the mail template, the mail subject and the mail content are respectively configured with a language code, a department code and a function code.
The mail template comprises two parts of contents, namely a mail subject and a mail content, wherein the mail subject and the mail content comprise a dynamic loading content and a static loading content, the dynamic loading content is replaced by a corresponding content according to actual needs when each mail is created, the static loading content is in a static loading mode, and the static loading content is not changed when each mail is created.
The mail subject and the mail content respectively include configurations of three aspects, i.e., a language code, a section code, and a function code. The configuration language code is used to identify the language to be used for the created mail, for example: if the supplier is a German company, the German is used to create the mail if the supplier is identified to use German by the language code according to the relevant information of the supplier. The department code is configured to identify which department sent the mail. The function code is configured to determine which function of the function module is used, and it is known which function of the function module is used before a mail is created, so that the function code is determined before the mail is created and can be directly defined for use.
It should be noted that the functional module is a module created by the mail system, and taking the bidding module as an example, the bidding module includes functions of creating a bid, issuing a bid, and the like. The function code also takes the bidding module as an example, the bidding module issues the bidding project function code Publish, the bidding module cancels the issue function code cantlepublish, and the supplier of the bidding module has quoted the function code supplierbedSubmit.
In addition, the identification language is a single processing logic, different analysis and judgment needs to be carried out under different conditions, and the identification language can be obtained by analyzing information such as currency, contact phone, contact name, location or configuration and the like of a supplier.
In order to conveniently view the function module, module codes are also configured on the mail subject and the mail content, the module codes are code information of the function module in the mail system, and the configuration module codes are used for identifying the function module and are used as the identity ID of the function module. The module code is defined in the file, and the module code can be directly used after being acquired.
In one embodiment of the present invention, the format of the configured mail topic is:
EmailSubject _ [ language code ] _[ module code ] _[ function code ] _[ department code ]
The order of codes in the format is not necessarily arranged in the above order.
For example: the Chinese subject format name of the bidding project function issued by the bidding module of the human resources department can be configured as follows:
EmailSubject_CN_BID_Publish_HR
wherein: CN is Chinese language code;
BID is a module code of the bidding module;
publishing is a function code issued by the bidding project;
HR is the department code.
The format of the configured mail subject is as follows:
EmailContent language code module code function code department code
For example: the Chinese content format name of the bidding project issuing function of the bidding module of the human resource department can be configured as follows:
EmailContent_CN_BID_Publish_HR
wherein: CN is Chinese language code;
BID is a module code of the bidding module;
publishing a function code for the bidding project by Publish;
HR is the department code.
In one particular embodiment of the present invention,
the bidding mail subject is: the contents of the "[ company name ] [ department name ] [ project name ] bid invitation" mail are:
[ name of supplier ]
The mail specially invites the relevant responsible person of the noble company to log in the supplier cooperation platform and participate in the bidding of the project name.
The bidding time is from the item starting time to the item ending time, and the user is asked to participate on time. Clicking the following link address to log in, and entering ' bidding management- ' bidding hall ' to participate in bidding: after login, the left menu "help document- -supplier operation manual" is clicked to view the bidding operation flow.
[ Login Address ]
[ company name ]
[ System date ]
The contents in the contents are dynamically loaded contents, the contents need to be replaced according to actual requirements when the mails are sent, and the complete mail subjects and mail contents are generated according to the actual contents replacement when the mails are sent.
If the language code identifies two or less languages, the mails are created using the identified languages, respectively. Take english mail as an example: the English mail corresponding to the Chinese mail is as follows:
[ company name ] [ department name ] [ project name ] invocation to Bid.
(supplier name) and (project name) has started. the plan logic to the docking system to the stick part in the bid.
The doubling time: [ project Start time ] - [ project end time ], Pdeal attribute on time, thank you! Click the link belt and logic the system to the menu, copying Management-copying Hall to bid:
[ Login Address ]
[ System date ]
The mail content is stored in the form of a whole, including line feed, space, and deposit position.
In the mail creating stage, the method comprises the following steps:
step S102: loading a mail template from a mail configuration center; the method comprises the steps of loading a language used by a created mail according to a language code, loading a department for creating the mail according to a department code, and loading a function realized in the mail by a function module corresponding to a function code according to the function code.
When the mail is created, the configured mail template is loaded from the mail configuration center, and corresponding changes are carried out on partial contents of the mail template. The loading of the mail template is actually the function realized by loading the configured mail subject and mail content, namely loading language codes, function codes, module codes and department codes. That is, the recognized language is loaded according to the language code, the department that creates the mail is loaded according to the department code, and the function that the function module corresponding to the function code realizes in the mail is loaded according to the function code.
Step S103: and replacing the dynamically loaded content in the mail template with the predefined content.
And for the dynamically loaded contents in the mail template, namely the mail subject and the dynamically loaded contents in the mail contents, predefining some contents according to actual needs, and replacing the dynamically loaded contents with the predefined contents to complete the creation of a new mail. The implementation mode of the replacement content is as follows: and calling a Replace function to Replace the content in the "[ ]" with the content in the real scene. For example: replace ("[ vendor name ]", "# company")
After the mail is created, the mail content is sent to a mail queue and set to be in a state to be sent, the mail sending service is started all the time, and the mail in the state to be sent in the mail queue is polled; and after the mail is sent out, the state of the mail is changed into the sent state. When the mail transmission fails due to the failure of the target mail address or other reasons, the reason of the mail transmission failure is sent to a mailbox administrator and an administrator of a corresponding module as a mail, and the problem of the mail transmission failure is solved.
The above-mentioned contents describe in detail the multilingual mail creation method provided by the present invention. Corresponding to the method, the invention also provides a system for generating the multi-language mail.
Fig. 2 shows a logical structure of a multilingual mail-generating system according to an embodiment of the present invention.
As shown in fig. 2, the multilingual mail creation system 200 according to the embodiment of the present invention includes a mail template configuration unit 210, a mail template loading unit 220, and a content information replacement unit 230.
The mail template configuration unit 210 is configured to configure a mail subject and a mail content through a mail configuration center to form a mail template, where the mail template configuration unit 210 includes: a language code configuration module 211, configured to configure language codes for the mail subject and the mail content respectively; a department code configuration module 212, configured to configure the department codes for the mail subject and the mail content respectively; and a function code configuration module 213, configured to configure the function codes for the mail subject and the mail content, respectively.
The mail template loading unit 220 is used for loading a mail template from a mail configuration center; the mail template loading unit 220 includes: a language loading module 221, configured to load a language used by the created email according to the language code; a department loading module 222, configured to load, according to the department code, a department that creates the mail; and a function loading module 223, configured to load, according to the function code, a function implemented in the email by the function module corresponding to the function code.
The content information replacing unit 230 is configured to replace the content dynamically loaded in the mail template with predefined content.
In addition, the mail template configuring unit 210 further includes a module code configuring module 214, configured to configure module codes for the mail subject and the mail content, respectively, where the module codes are used to identify the functional module as the identity ID of the functional module.
In addition, the language loading module 221 loads the language used by the mail by analyzing the currency of the supplier, the contact phone, or the contact name through the language code.
Further, the mail template loading unit 220 further includes a code information loading module 224 for loading the code information of the function module according to the module code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A generating method of multi-language mail comprises mail configuration stage and mail creating stage; wherein the content of the first and second substances,
the mail configuration stage comprises the following steps:
configuring a mail subject and mail content through a mail configuration center to form a mail template, wherein the mail subject and the mail content comprise dynamically loaded content and statically loaded content, and in the process of forming the mail template, configuring a language code, a department code and a function code for the mail subject and the mail content respectively; wherein the language code is used for identifying the language required by the created mail; the department code is used for identifying the department for creating the mail; the function code is used for determining a function realized in the mail; in the process of identifying the language needed by the created mail, performing language identification according to the basic information of the supplier; the basic information at least comprises a currency system of a supplier and a contact name;
the mail creating stage comprises:
loading the mail template from the mail configuration center; loading a language used by the created mail according to the language code, loading a department for creating the mail according to the department code, and loading a function realized in the mail by a function module corresponding to the function code according to the function code;
and replacing the dynamically loaded content in the mail template with predefined content.
2. The multilingual mail-generating method according to claim 1, wherein, in said mail configuring step, it further comprises:
and respectively configuring module codes for the mail subject and the mail content, wherein the module codes are used for identifying the functional module and are used as the identity ID of the functional module.
3. The multilingual mail-generating method according to claim 2, wherein in the process of loading the mail template, code information of the functional module is further loaded based on the module code.
4. The multilingual mail-generating method according to any one of claims 1 to 3, wherein, in the process of identifying a language required for use of the created mail,
if the language code identifies two or more languages, the mails are respectively created by using the identified languages.
5. A multilingual mail-generating system comprising:
a mail template configuration unit, configured to configure a mail subject and mail content through a mail configuration center to form a mail template, where the mail subject and the mail content include dynamically loaded content and statically loaded content, and the mail template configuration unit includes: the language code configuration module is used for respectively configuring the language codes for the mail subject and the mail content; a department code configuration module, configured to configure the department code for the mail subject and the mail content respectively; the function code configuration module is used for respectively configuring the function codes for the mail subject and the mail content; wherein the language code is used for identifying the language required by the created mail; the department code is used for identifying the department for creating the mail; the function code is used for determining a function realized in the mail; in the process of identifying the language needed by the created mail, performing language identification according to the basic information of the supplier; the basic information at least comprises a currency system of a supplier and a contact name;
a mail template loading unit, configured to load the mail template from the mail configuration center; wherein, the mail template loading unit comprises: the language loading module is used for loading the language used by the created mail according to the language code; the department loading module is used for loading and creating the department of the mail according to the department code; the function loading module is used for loading the function realized by the function module corresponding to the function code in the mail according to the function code;
and the content information replacing unit is used for replacing the dynamically loaded content in the mail template with the predefined content.
6. The multilingual mail-generating system of claim 5, wherein,
the mail template configuration unit further comprises a module code configuration module, which is used for respectively configuring module codes for the mail subject and the mail content, and the module codes are used for identifying the functional module as the identity ID of the functional module.
7. The multilingual mail-generating system of claim 6,
the mail template loading unit also comprises a code information loading module which is used for loading the code information of the functional module according to the module code.
8. The multilingual mail-generating system of any one of claims 5-7, wherein,
the language loading module analyzes the currency system of a supplier, the telephone of a contact person or the language used by loading the mail through the language code, and if the language code identifies two or more languages, the language loading module respectively uses the identified languages to respectively create the mail.
CN201510999918.6A 2015-12-28 2015-12-28 Method and system for generating multi-language mail Active CN105608559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510999918.6A CN105608559B (en) 2015-12-28 2015-12-28 Method and system for generating multi-language mail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510999918.6A CN105608559B (en) 2015-12-28 2015-12-28 Method and system for generating multi-language mail

Publications (2)

Publication Number Publication Date
CN105608559A CN105608559A (en) 2016-05-25
CN105608559B true CN105608559B (en) 2021-02-23

Family

ID=55988482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510999918.6A Active CN105608559B (en) 2015-12-28 2015-12-28 Method and system for generating multi-language mail

Country Status (1)

Country Link
CN (1) CN105608559B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104360B (en) * 2018-09-19 2022-11-25 平安科技(深圳)有限公司 Mail sending method, mail sending system, computer equipment and storage medium
CN117196558A (en) * 2023-09-25 2023-12-08 杭州龙席网络科技股份有限公司 Client mining method, system, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657419A (en) * 2014-12-26 2015-05-27 盈世信息科技(北京)有限公司 Processing method and system for customized letter paper templates
CN104935492A (en) * 2014-03-18 2015-09-23 阿里巴巴集团控股有限公司 E-mail verification method, device and system
CN104954238A (en) * 2015-07-17 2015-09-30 上海斐讯数据通信技术有限公司 Email template management method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103426079A (en) * 2012-06-20 2013-12-04 中兴通讯股份有限公司 Mail sending method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935492A (en) * 2014-03-18 2015-09-23 阿里巴巴集团控股有限公司 E-mail verification method, device and system
CN104657419A (en) * 2014-12-26 2015-05-27 盈世信息科技(北京)有限公司 Processing method and system for customized letter paper templates
CN104954238A (en) * 2015-07-17 2015-09-30 上海斐讯数据通信技术有限公司 Email template management method and system

Also Published As

Publication number Publication date
CN105608559A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
US10146599B2 (en) System and method for a generic actor system container application
US8984489B2 (en) Quality on submit process
CN107491983B (en) WeChat client behavior feedback method, equipment and storage medium
US8850390B2 (en) Status management for phased implementation of configuration changes
CN109117141B (en) Method, device, electronic equipment and computer readable storage medium for simplifying programming
US20160050512A1 (en) Method and apparatus for developing, distributing and executing applications
JP2021509498A (en) Computing device
CN110515679A (en) Collecting method, device, equipment and storage medium
TW201523419A (en) Window interface display method and system
CN111190673A (en) Page display method and device based on operation monitoring and electronic equipment
CN111752587A (en) Batch processing method and device of small programs, electronic equipment and readable storage medium
US10313192B2 (en) Automated creation of test tenants for data center technical issue detection
CN105608559B (en) Method and system for generating multi-language mail
US20140143752A1 (en) Systems and methods for providing environments as a service
CN112817562A (en) Service processing method and device
CN111027933A (en) Approval transfer method, device and system and electronic equipment
AU2023210618A1 (en) System and method for providing a customisable graphical user interface for information technology assistance
CN109302336B (en) Mail generation method and device, computer equipment and storage medium
CN110048940A (en) Sending method, device, server and the readable storage medium storing program for executing of instant communication message
CN114527993A (en) Application deployment method, device, equipment and medium
CN102043855A (en) Method and system for integrating configuration management and defect management
CN114661274A (en) Method and device for generating intelligent contract
CN105320523B (en) Data processing method and device
CN113935847A (en) Online process risk processing method, device, server and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant after: Goertek Inc.

Address before: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant before: Goertek Inc.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant