CN115038054A - Automatic sending method and device for short messages and mails - Google Patents

Automatic sending method and device for short messages and mails Download PDF

Info

Publication number
CN115038054A
CN115038054A CN202210502996.0A CN202210502996A CN115038054A CN 115038054 A CN115038054 A CN 115038054A CN 202210502996 A CN202210502996 A CN 202210502996A CN 115038054 A CN115038054 A CN 115038054A
Authority
CN
China
Prior art keywords
sending
operator
api
automatic
container
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.)
Granted
Application number
CN202210502996.0A
Other languages
Chinese (zh)
Other versions
CN115038054B (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.)
Tongfang Youyun Beijing Technology Co ltd
Original Assignee
Tongfang Youyun Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tongfang Youyun Beijing Technology Co ltd filed Critical Tongfang Youyun Beijing Technology Co ltd
Publication of CN115038054A publication Critical patent/CN115038054A/en
Application granted granted Critical
Publication of CN115038054B publication Critical patent/CN115038054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method and device for automatically sending short messages and mails, wherein the method comprises the steps of acquiring and processing necessary information, registering a request method of a notification processing request API and an alarm processing request API, a relative path of the request and an API name of the request, and forming an automatic route for sending service; compiling the code file into an executable file, uploading the executable file to a deployment environment, storing the executable file in a container, and opening a use permission for the container; and acquiring the telephone numbers and/or the mailbox addresses of the preset sender and receiver through the panel, and automatically sending the short messages and the mails through automatic routing and service deployment according to the preset sending logic. According to the method and the system, the configuration of the short messages and the mails is completed according to the actual needs of the user through the API for sending the short messages and the mails provided by each large operator, and the function of sending the short messages and the mails is realized according to the effective configuration of the short messages and the mails, so that the efficient, quick, accurate, personalized and customized short message and electronic mail services are provided for the user.

Description

Automatic sending method and device for short messages and mails
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method and a device for automatically sending short messages and mails.
Background
In the related art, when a short message and a mail are sent in the face of a preset logic, the corresponding logic cannot be automatically processed and a corresponding response is made, that is, the automation capacity is not very good, for example, when the preset logic is an alarm, the prior art cannot automatically integrate the content to be alarmed and send the content to a specified terminal so as to realize the function of automatic alarm; in addition, most of the prior art generally supports mainstream operators, but when a user needs to use other specified operators, the prior art cannot meet the requirements, the selectable aspect for the user is narrow, the personalized customization aspect is lacked, and the short message and mail sending technology has the problem that the actual requirements cannot be met in the practical application.
Disclosure of Invention
In view of this, the present invention provides an automatic short message and email sending method and apparatus to overcome the shortcomings in the prior art, so as to solve the problem that the automatic short message and email sending in the prior art does not meet the actual requirements in the real application.
In order to realize the purpose, the invention adopts the following technical scheme: an automatic sending method of short messages and mails comprises the following steps:
essential information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the request and an API name of the request, and forming an automatic route for sending service; the necessary information includes: docking contents of a sender and a receiver, related contents of an operator, template contents and sending standards;
service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file in a preset container, and calling chmod to open the use permission of the container; wherein the container is used for short message and mail service;
and (3) automatic sending: and acquiring the telephone numbers and/or the mailbox addresses of the preset sender and receiver through the panel, and automatically sending the short messages and the mails through automatic routing and service deployment according to the preset sending logic.
Further, the acquiring and processing the necessary information includes:
presetting a configuration object; the configuration object includes: the information of the subject, name, operator configuration, receiver and sender and the notice content; the information of the receiver and the sender comprises telephone numbers or mailbox addresses of the receiver and the sender;
configuring an operator to form a sub-automatic route configured by the operator;
processing a template of information to be sent by adopting a text string processing mode to form a standard template;
configuring an information object; the information object comprises the information of a theme, a receiver and a sender and the sending content;
and assembling the configuration object, the sub automatic route, the standard template and the information object to form a notification processing request API and an alarm processing request API.
Further, the configuring the operator includes:
setting 5 APIs, including: adding an operator, displaying all operators, deleting one operator, modifying one operator and displaying a specified operator;
registering the request method of 5 APIs, the relative path of the request and the name of the requested API method, and forming a sub-automatic route configured by an operator through gin packets.
Further, the invoking chmod opens the usage right to the container, including:
invoking the chmod command has read-write and executable rights for the user, group.
Further, invoking chmod to open the usage right to the container, and then:
restarting the container and modifying the service state of the container to start.
Further, each operator has a separate transmission path.
Further, the preset sending logic is set according to an application scene.
The embodiment of the application provides an automatic sending device of short messages and mails, which comprises:
a processing module for necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the request and an API name of the request, and forming an automatic route for sending service; the necessary information includes: docking contents of the sender and the receiver, related contents of operators, template contents and sending standards;
a deployment module for service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file in a preset container, and calling chmod to open the use permission of the container; wherein the container is used for short message and mail service;
a sending module for automatically sending: and acquiring the preset telephone numbers and/or mailbox addresses of the sender and the receiver through a panel, and automatically sending the short messages and the mails through automatic routing and service deployment.
An embodiment of the present application provides a computer device, including: a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of any of the above automatic short message and mail sending methods.
The embodiment of the application also provides a computer storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of any one of the automatic short message and mail sending methods.
By adopting the technical scheme, the invention can achieve the following beneficial effects:
the invention provides a method and a device for automatically sending short messages and mails, which can complete the configuration of the short messages and the mails according to the actual requirements of users through the API for sending the short messages and the mails provided by each large operator, and realize the function of automatically sending the short messages and the mails according to the effective configuration of the short messages and the mails, thereby providing high-efficiency, quick, accurate, personalized and customized short message and e-mail services for the users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating steps of an automatic short message and mail sending method according to the present invention;
FIG. 2 is a schematic structural diagram of an automatic short message and email sending device according to the present invention;
fig. 3 is a schematic structural diagram of hardware equipment for executing the automatic short message and mail sending method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
A specific method and apparatus for automatically sending short messages and emails provided in the embodiments of the present application are described below with reference to the accompanying drawings.
As shown in fig. 1, the automatic sending method for short messages and emails provided in the embodiment of the present application includes:
s101, necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the request and an API name of the request, and forming an automatic route for sending service; the necessary information includes: docking contents of a sender and a receiver, related contents of an operator, template contents and sending standards;
s102, service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file in a preset container, and calling chmod to open the use permission of the container; wherein, the container is used for short message and mail service;
s103, automatically sending: and acquiring the telephone numbers and/or the mailbox addresses of the preset sender and receiver through the panel, and automatically sending the short messages and the mails through automatic routing and service deployment according to the preset sending logic.
The working principle of the automatic sending method of the short messages and the mails is as follows: it can be understood that the technical solution provided by the present application is to configure necessary information and services, and has an automatic sending function, that is, the present application plays a role of an intermediate service: when the operator is docked, various operator plugins can be integrated; when processing the content of the sent message, the template of the message sending can be customized; when various sending logics are faced, the automatic routing of the sending service API can be used for realizing the automatic processing of the sending logics; when the sender and the receiver are connected in series, the information (telephone number or mailbox address) of the sender and the receiver can be automatically integrated, and then the sending operation is completed. Specifically, the service delivery API in the present application specifically includes: a processing request API and an alarm processing request API.
The invention also solves the problem of supporting the personalized configuration of the operator, and the framework constructed by the invention is relatively uniform, standard, flexible and loosely coupled on the whole: when integrating each operator, the invention abstracts a uniform operator object, and forms a sending object with a comparison specification by considering the difference among the operators; when other operators appointed by the user need to be expanded besides the main stream operator, because each key step in the sending processing process is processed uniformly and normally, the invention can flexibly realize the personalized configuration of different operators; the invention processes each operator to have each independent path, so that the operators do not interfere with each other, namely loose coupling processing, and the stability of sending can be greatly improved.
In some embodiments, the acquiring and processing the necessary information includes:
presetting a configuration object; the configuration object includes: subject, name, operator configuration, information of receiver and sender, and notification content; the information of the receiver and the sender comprises telephone numbers or mailbox addresses of the receiver and the sender;
in the application, a configuration object of a receiver is abstracted, and the object contains the following contents: subject, name, operator configuration, recipient and sender information (phone number or mailbox address), notification content.
Configuring an operator to form a sub-automatic route configured by the operator;
in some embodiments, the configuring the operator includes:
setting 5 APIs, including: adding an operator, showing all operators, deleting an operator, modifying an operator and displaying a specified operator;
registering the request method of 5 APIs, the relative path of the request and the name of the requested API method, and forming a sub-automatic route configured by an operator through gin packets.
Specifically, the present invention designs 5 APIs to be responsible for configuration and adjustment work of an operator before sending, which are respectively: adding an operator (createproviderdhandler), displaying all operators (listproviderhandlers), deleting an operator (deletepproviderhandler), modifying an operator (updateProviderHandler), displaying a specified operator (showpproviderhandler), after designing 5 APIs, registering request methods of the 5 APIs, relative paths of the requests and names of the requested API methods, and integrating the request methods, the relative paths and the names of the requested API methods through gin packages (Web frames of go languages) to form an automatic route configured by the operators. By utilizing the cooperation of the five APIs, the user can configure the content of the part of the operator before sending and can adjust the content in time when needed later.
Processing a template of information to be sent by adopting a text string processing mode to form a standard template;
the template is uniformly processed by the template package (template), the template objects in the template package (template) are defined, and the information template of the content to be sent is uniformly processed by a text string (ExecuteTextString) processing method.
Configuring an information object; the information object comprises the information of a theme, a receiver and a sender and the sending content;
the invention abstracts out an information object (Message), which comprises: subject, recipient and sender information, sending content, the Message is the sending object mentioned above, and all operators perform sending operation according to the standard of the object.
And assembling the configuration object, the sub automatic route, the standard template and the information object to form a notification processing request API and an alarm processing request API.
Specifically, the contents of the four blocks of the configuration object, the sub automatic routing, the standard template, and the information object are sequentially assembled to form two APIs of the sending service of the present invention, one is a notification processing request (notifyHandler), and the other is an alert processing request (alert handler), then the request methods, the relative paths of the requests, and the API method names of the requests of the 2 APIs are registered, and the notification processing request API is integrated by a gin package (Web framework in go language) to form the automatic routing of the sending service, the notification processing request API is designed for a general sending scenario, the alert processing request API is designed for an alert sending scenario, and the two APIs are a basis for completing the automatic sending.
It should be noted that, there are the following differences in the transmission process for each operator: the difference of the required sending information (i.e. the configuration information of the operators) is relatively large, the sending types provided by the operators are also different (some operators can provide two services of short message and mail at the same time, some operators can only provide one of the services), and the sending mechanisms of different operators are also different (the respective sending logics are different).
In order to solve the difference of the information sent by the operators, the invention abstracts the configuration information object of each operator, stores all key configuration information into the configuration information object, plays a role of aggregation and is convenient for subsequent uniform processing; in order to solve the difference of the sending types provided by the operators, the invention abstracts the objects of the respective operators, and places the types of the operators, the configuration information of the operators and other necessary contents in the operator object, at the moment, the prior processing of the configuration information of the operators facilitates the processing of the current operator object, and when the operator object is newly built, corresponding processing is carried out according to different sending logics of the operators, so that different operators can be unified; thanks to the abstracted information object (Message), in the sending logic of each operator, the information processed by each operator is deconstructed and aggregated to the information object (Message), so that the sending object in the sending purpose is formed, and then error reporting processing is set in a key place according to the logic of each operator in the processing process, thereby facilitating the necessary prompt when the sending condition of each operator is tested later, and making necessary adjustment according to the prompt to ensure the success of the sending test. After the difference is solved, the configuration of each operator can be flexibly adjusted: when a new operator is added, the standard is adopted to carry out standardized operation, and the expansion can be easily finished.
In some embodiments, the invoking chmod opens usage rights to the container, including:
invoking the chmod command has read-write and executable rights for the user, group.
Preferably, after invoking chmod to open the usage right to the container, the method further includes:
restarting the container and modifying the service state of the container to start.
Specifically, the environmental service deployment specifically comprises the following steps:
(1) after the code development of the invention is finished, a code file is compiled into an executable file on a local or cloud host by using a go build command, and the executable file is uploaded to a deployment environment specified by a user by using Xftp software.
(2) After the executable files are uploaded to a deployment environment, the executable files are placed in a container designated by a short message service and a mail service, and then the command chmod +777 is used for releasing the authority, so that a user (user), a group (group) and other services have read-write and executable authorities, and the user can release the executable files to other services to use the services of the invention.
(3) Finally, restarting the container, setting the service state of the invention as starting state, the panel completes the front-end and back-end interaction through the automatic route configured by the operator set in the front, thus the user can configure and modify the operator at any time through the panel; the sending logic (for example, the alarm sending logic, which will be specifically described below) can call the APIs of the two sending services at any time to perform sending operation through the automatic routing of the sending service set in advance, so that the sending service can be started at any time; thus, automation capabilities can be developed.
As a specific implementation, the present application adopts practical examples to further illustrate the automation capability, specifically taking short message and email sending of the alarm as an example.
Before a specific scene sends an application, some preparation work needs to be done: the user needs to apply for the operator authority to the operator first so as to obtain the configuration information of the operator, and at this time, the user can apply for the template registration to the operator. After that, the user can fill in the configuration information of the operator on the panel, and the configuration information is saved in the database through the back end; the user fills in the telephone number and the mailbox address which need to be received at the position of the telephone and the mailbox reserved on the panel for receiving the short message and the mail.
The conditions for triggering the alarm are: when some services of the whole system have problems due to natural or artificial reasons, a group alarm notification needs to be performed and alarm notification information is sent to an administrator so that the administrator can perform subsequent processing, and the whole sending process is performed in an automatic mode. Just because the alarm logic is in butt joint with the service logic of the invention when the service is deployed, the alarm notification information can be automatically sent to the administrator at the moment; an object configured by a receiver is abstracted in the front, and the inside of the object contains a mobile phone number and a mailbox address of the receiver, so that the number and the address of the administrator can be automatically searched in the sending process, and the sending destination is known; because the template is processed uniformly in the front, the transmitted content can be automatically and normally displayed, and finally, an automatic process is formed, and the automatic capability is formed.
As shown in fig. 2, the present application provides an automatic sending apparatus for short messages and emails, including:
a processing module 201 for necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the request and an API name of the request, and forming an automatic route for sending service; the necessary information includes: docking contents of the sender and the receiver, related contents of operators, template contents and sending standards;
a deployment module 202 for service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file in a preset container, and calling chmod to open the use permission of the container; wherein the container is used for short message and mail service;
a sending module 203, configured to automatically send: the method comprises the steps of obtaining preset telephone numbers and/or mailbox addresses of a sender and a receiver through a panel, and automatically sending short messages and mails through automatic routing and service deployment.
The working principle of the automatic sending device for short messages and mails provided by the application is that the processing module 201 performs necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the requests and an API name of the requests, and forming an automatic route for sending services; the necessary information includes: docking contents of a sender and a receiver, related contents of an operator, template contents and sending standards; the deployment module 202 performs service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file into a preset container, and calling chmod to open a use authority for the container; wherein the container is used for short message and mail service; the sending module 203 performs automatic sending: and acquiring the preset telephone numbers and/or mailbox addresses of the sender and the receiver through a panel, and automatically sending the short messages and the mails through automatic routing and service deployment.
The present application provides a computer device comprising: memory, which may include volatile memory on a computer-readable medium, Random Access Memory (RAM), and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), and a network interface. The computer device stores an operating system, and the memory is an example of a computer-readable medium. The computer program, when executed by the processor, causes the processor to execute an automatic short message and mail sending method, and the structure shown in fig. 3 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation on the computer device to which the present application is applied, and a specific computer device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In one embodiment, the automatic sending method of the short message and the mail provided by the present application can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 3.
In some embodiments, the computer program, when executed by the processor, causes the processor to perform the steps of: and (3) necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the request and an API name of the request, and forming an automatic route for sending service; the necessary information includes: docking contents of the sender and the receiver, related contents of operators, template contents and sending standards; service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file into a preset container, and calling chmod to open a use authority for the container; wherein the container is used for short message and mail service; and (3) automatic sending: and acquiring the telephone numbers and/or the mailbox addresses of the preset sender and receiver through the panel, and automatically sending the short messages and the mails through automatic routing and service deployment according to the preset sending logic.
The present application further provides a computer storage medium, examples of which include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassette tape storage or other magnetic storage devices, or any other non-transmission medium, that can be used to store information that can be accessed by a computing device.
In some embodiments, the present invention further provides a computer-readable storage medium storing a computer program, which when executed by a processor, performs the necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the requests and an API name of the requests, and forming an automatic route for sending services; the necessary information includes: docking contents of a sender and a receiver, related contents of an operator, template contents and sending standards; service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file in a preset container, and calling chmod to open the use permission of the container; wherein, the container is used for short message and mail service; and (3) automatic sending: the method comprises the steps of obtaining phone numbers and/or mailbox addresses of a preset sender and a preset receiver through a panel, and automatically sending short messages and mails through automatic routing and service deployment according to preset sending logic.
In summary, the present invention provides an automatic sending method and device for short messages and emails, which automatically realizes various functions, saves a lot of manpower and material resources, and makes the whole short message service and email service more efficient; the invention realizes the personalized customization, can better serve the user, thus greatly increasing the satisfaction degree of the user; the invention realizes the mechanism of enriching operators, can greatly improve the service areas of short messages and mails, and greatly improve the selection area of users.
It can be understood that the method embodiments provided above correspond to the apparatus embodiments described above, and corresponding specific contents may be referred to each other, which are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
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 think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. An automatic sending method of short messages and mails is characterized by comprising the following steps:
and (3) necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the requests and an API name of the requests, and forming an automatic route for sending services; the necessary information includes: docking contents of a sender and a receiver, related contents of an operator, template contents and sending standards;
service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file into a preset container, and calling chmod to open a use authority for the container; wherein, the container is used for short message and mail service;
and (3) automatic sending: and acquiring the telephone numbers and/or the mailbox addresses of the preset sender and receiver through the panel, and automatically sending the short messages and the mails through automatic routing and service deployment according to the preset sending logic.
2. The method of claim 1, wherein the obtaining and processing necessary information comprises:
presetting a configuration object; the configuration object includes: subject, name, operator configuration, information of receiver and sender, and notification content; the information of the receiver and the sender comprises telephone numbers or mailbox addresses of the receiver and the sender;
configuring an operator to form a sub-automatic route configured by the operator;
processing a template of information to be sent by adopting a text string processing mode to form a standard template;
configuring an information object; the information object comprises the information of a theme, a receiver and a sender and the sending content;
and assembling the configuration object, the sub-automatic routing, the standard template and the information object to form a notification processing request API and an alarm processing request API.
3. The method of claim 2, wherein the configuring the operator comprises:
setting 5 APIs, including: adding an operator, showing all operators, deleting an operator, modifying an operator and displaying a specified operator;
registering the request method of 5 APIs, the relative path of the request and the name of the requested API method, and forming a sub-automatic route configured by an operator through gin packets.
4. The method of claim 1, wherein the invoking chmod opens usage rights to the container, comprising:
invoking the chmod command has read-write and executable rights for the user, group.
5. The method of claim 1, wherein after invoking chmod to open usage rights to the container, further comprising:
restarting the container and modifying the service state of the container to start.
6. The method of claim 1,
each operator has a separate transmission path.
7. The method of claim 5,
the preset sending logic is set according to an application scene.
8. An automatic short message and mail sending device is characterized by comprising:
a processing module for necessary information processing: acquiring and processing necessary information to obtain a notification processing request API and an alarm processing request API, registering request methods of the notification processing request API and the alarm processing request API, a relative path of the request and an API name of the request, and forming an automatic route for sending service; the necessary information includes: docking contents of a sender and a receiver, related contents of an operator, template contents and sending standards;
a deployment module for service deployment: compiling the code file into an executable file, uploading the executable file to a preset deployment environment, storing the executable file in a preset container, and calling chmod to open the use permission of the container; wherein the container is used for short message and mail service;
a sending module for automatically sending: and acquiring the preset telephone numbers and/or mailbox addresses of the sender and the receiver through a panel, and automatically sending the short messages and the mails through automatic routing and service deployment.
9. A computer device, comprising: a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to execute the automatic transmission method of short messages and mails according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that a computer program is stored, which, when executed by a processor, causes the processor to execute the automatic transmission method of short messages and mails according to any one of claims 1 to 7.
CN202210502996.0A 2022-01-27 2022-05-09 Automatic sending method and device for short messages and mails Active CN115038054B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2022100997359 2022-01-27
CN202210099735 2022-01-27

Publications (2)

Publication Number Publication Date
CN115038054A true CN115038054A (en) 2022-09-09
CN115038054B CN115038054B (en) 2023-05-26

Family

ID=83120742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210502996.0A Active CN115038054B (en) 2022-01-27 2022-05-09 Automatic sending method and device for short messages and mails

Country Status (1)

Country Link
CN (1) CN115038054B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870693A (en) * 2005-05-27 2006-11-29 中国移动通信集团公司 Method receiving short message by E-mail
CN101640647A (en) * 2008-07-31 2010-02-03 中兴通讯股份有限公司 Email sending service device, email sending service system and email sending method
CN101765068A (en) * 2009-12-02 2010-06-30 中兴通讯股份有限公司 Method and system for backing up mobile phone short messages
US20140162599A1 (en) * 2012-12-07 2014-06-12 At&T Intellectual Property I, L.P. Providing a masked short message service in a wireless network
CN104243282A (en) * 2014-09-12 2014-12-24 深圳创维数字技术有限公司 Message informing method and server
WO2018078517A1 (en) * 2016-10-31 2018-05-03 Rana Mohit System and method for creating an internet identity based on the user's existing verifiable identity
CN108632771A (en) * 2018-04-28 2018-10-09 北京聚通达科技股份有限公司 One kind being based on the novel note systems of OTA
CN109039876A (en) * 2018-09-19 2018-12-18 天津字节跳动科技有限公司 Email processing method and device
US20190349325A1 (en) * 2000-01-10 2019-11-14 Events.Com, Inc. Inter vehicle communication system
WO2019232948A1 (en) * 2018-06-05 2019-12-12 平安科技(深圳)有限公司 Method and system for monitoring automatic sending of email, computer device, and storage medium
CN111083041A (en) * 2019-11-29 2020-04-28 百度在线网络技术(北京)有限公司 Mail processing method and device and electronic equipment
CN113114490A (en) * 2021-03-30 2021-07-13 海信集团控股股份有限公司 API call abnormity warning method, device, equipment and medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190349325A1 (en) * 2000-01-10 2019-11-14 Events.Com, Inc. Inter vehicle communication system
CN1870693A (en) * 2005-05-27 2006-11-29 中国移动通信集团公司 Method receiving short message by E-mail
CN101640647A (en) * 2008-07-31 2010-02-03 中兴通讯股份有限公司 Email sending service device, email sending service system and email sending method
CN101765068A (en) * 2009-12-02 2010-06-30 中兴通讯股份有限公司 Method and system for backing up mobile phone short messages
US20140162599A1 (en) * 2012-12-07 2014-06-12 At&T Intellectual Property I, L.P. Providing a masked short message service in a wireless network
CN104243282A (en) * 2014-09-12 2014-12-24 深圳创维数字技术有限公司 Message informing method and server
WO2018078517A1 (en) * 2016-10-31 2018-05-03 Rana Mohit System and method for creating an internet identity based on the user's existing verifiable identity
CN108632771A (en) * 2018-04-28 2018-10-09 北京聚通达科技股份有限公司 One kind being based on the novel note systems of OTA
WO2019232948A1 (en) * 2018-06-05 2019-12-12 平安科技(深圳)有限公司 Method and system for monitoring automatic sending of email, computer device, and storage medium
CN109039876A (en) * 2018-09-19 2018-12-18 天津字节跳动科技有限公司 Email processing method and device
CN111083041A (en) * 2019-11-29 2020-04-28 百度在线网络技术(北京)有限公司 Mail processing method and device and electronic equipment
CN113114490A (en) * 2021-03-30 2021-07-13 海信集团控股股份有限公司 API call abnormity warning method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪志莉;程煊;刘莉;: "Javamail和Ajax技术在短信推送中的应用", 图书馆学刊 *

Also Published As

Publication number Publication date
CN115038054B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN106951233B (en) Mixed-mode smart phone application development framework system
CN109756366B (en) Intelligent network SCP cloud service implementation system based on CAAS
CN109684054A (en) Information processing method and device, electronic equipment and memory
RU2363039C2 (en) Data container for user interface content data
JP2007523419A6 (en) How to supply content to a device
CN113301116A (en) Cross-network communication method, device, system and equipment for microservice application
US20090025011A1 (en) Inter-process communication at a mobile device
US20080229274A1 (en) Automating Construction of a Data-Source Interface For Component Applications
CN114254606A (en) Microservice framework model
CN114168179A (en) Micro-service management method, device, computer equipment and storage medium
CN111045652A (en) Power distribution network development and service system
CN110138753A (en) Distributed message service system, method, equipment and computer readable storage medium
CN113449031A (en) Data synchronization management method and device and server
CN108370329B (en) Management method and device for management function object
CN115038054B (en) Automatic sending method and device for short messages and mails
CN110620754B (en) NF (NF) required resource deployment method and device, storage medium and electronic device
CN115996230A (en) Cross-cloud data synchronization method and device, computer equipment and readable storage medium
CN109698808A (en) A kind of method, equipment and device loading template message
CN111026502B (en) Business debugging architecture creating method and device, electronic equipment and storage medium
CN108563514A (en) Access method, application and the electronic equipment of application configuration service
CN112766690A (en) Hybrid cloud resource management system
CN114253546A (en) Code generation method and device, storage medium and electronic device
CN112558930A (en) Software generation system and method for container service
CN116719876B (en) Time sequence data processing method and terminal based on rule engine
CN109167826A (en) The restocking method, apparatus and system of WEB application

Legal Events

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