CN115038054B - 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
CN115038054B
CN115038054B CN202210502996.0A CN202210502996A CN115038054B CN 115038054 B CN115038054 B CN 115038054B CN 202210502996 A CN202210502996 A CN 202210502996A CN 115038054 B CN115038054 B CN 115038054B
Authority
CN
China
Prior art keywords
sending
short messages
mails
api
operator
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
CN202210502996.0A
Other languages
Chinese (zh)
Other versions
CN115038054A (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 a 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 of a sending service; compiling the code file into an executable file, uploading the executable file to a deployment environment, storing the executable file into a container, and opening the use authority to the container; and acquiring telephone 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. According to the method and the system for sending the short messages and the mails, configuration of the short messages and the mails is completed according to actual needs of users through the API provided by each large operator, and the function of sending the short messages and the mails is achieved according to effective configuration of the short messages and the mails, so that efficient, rapid, accurate, personalized and customized short message and email services are provided for the users.

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 an automatic sending method and device of short messages and mails.
Background
In the related art, when a short message and a mail are sent, under the condition of facing a preset logic, the corresponding logic cannot be automatically processed and a corresponding response is made, that is, the automatic capability is not very good, for example, when the preset logic is an alarm, the prior art cannot automatically integrate the content needing the alarm and send the content to a designated terminal so as to realize the function of automatic alarm; the prior art generally supports mainstream operators, but when users need to use other appointed operators, the prior art does not meet the requirements, and the selectable surface is narrow for the users, namely the personalized customization aspect is lacking in general, and the problems that the short message and mail sending technology cannot meet the actual requirements in the practical application exist.
Disclosure of Invention
In view of the above, the present invention aims to overcome the defects of the prior art, and provide a method and a device for automatically sending short messages and mails, so as to solve the problem that the automatic sending of short messages and mails in the prior art cannot meet the actual requirements in practical applications.
In order to achieve the above purpose, the invention adopts the following technical scheme: an automatic sending method of short messages and mails comprises 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 request and an API name of the request, and forming an automatic route of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard;
service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services;
automatic transmission: and acquiring telephone 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.
Further, the acquiring and processing the necessary information includes:
presetting a configuration object; the configuration object includes: topic, 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 operators to form sub-automatic routes configured by the operators;
a template for processing the information to be transmitted in a text string processing mode is adopted to form a standard template;
configuring an information object; the information object comprises a theme, receiver and sender information and a 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 one operator, displaying all operators, deleting one operator, modifying one operator, and displaying the designated operator;
the request method of 5 APIs, the relative path of the request and the name of the requested API method are registered, and the sub-automatic route configured by the operator is formed through gin packets.
Further, the calling chmod opens a use right to the container, including:
the call chmod command has read-write and executable rights to the user, group.
Further, invoking chmod opens the use right to the container, and then further includes:
restarting the container, and modifying the service state of the container to be started.
Further, each operator has a separate transmission path.
Further, the preset sending logic is set according to the application scene.
The embodiment of the application provides an automatic sending device of a short message and a mail, which comprises the following steps:
the processing module is used for processing necessary information: 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 of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard;
a deployment module for service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services;
the sending module is used for automatically sending: and acquiring telephone numbers and/or mailbox addresses of preset senders and receivers through the panel, and automatically sending short messages and mails through automatic routing and service deployment.
An embodiment of the present application provides a computer device, including: the automatic sending method comprises a memory and a processor, wherein the memory stores a computer program, and the computer program enables the processor to execute the steps of the automatic sending method of any short message and mail.
The embodiment of the application also provides a computer storage medium, which stores a computer program, wherein the computer program, when executed by a processor, causes the processor to execute the steps of the automatic sending method of any one of the short messages and mails.
By adopting the technical scheme, the invention has 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 needs 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 efficient, rapid, accurate, personalized and customized short message and email services for the users.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of steps of an automatic sending method of a short message and a mail according to the present invention;
FIG. 2 is a schematic diagram of the structure of the automatic sending device of the short message and the mail of the invention;
fig. 3 is a schematic structural diagram of a hardware device executed by the method for automatically sending a short message and a mail according to 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 will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
The following describes a specific method and device for automatically sending short messages and mails provided in the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 1, the method for automatically sending the short message and the mail 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 of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard;
s102, service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services;
s103, automatically sending: and acquiring telephone 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.
The working principle of the automatic sending method of the short message and the mail is as follows: it can be understood that the technical solution provided in the present application is to configure necessary information and services, and have an automatic sending function, that is, the present application plays a role of an intermediate service: various carrier plug-ins can be integrated when interfacing with carriers; when processing the message content, the template for message transmission can be customized; in the face of various send logic, automated processing of the send logic may be achieved through automatic routing of the send service API; 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 sending service 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 operators, and the framework constructed by the invention is unified, standard, flexible and loosely coupled on the whole: when integrating each operator, the invention abstracts a unified operator object, and forms a sending object with a comparison specification by considering the difference among each operator; when other operators specified by a user need to be expanded besides the main stream operators, the personalized configuration of different operators can be flexibly realized because each key step in the processing and sending process adopts unified and standard processing; the invention processes each independent path of each operator, so that the operators can not interfere with each other, namely the loose coupling processing can greatly improve the stability of transmission.
In some embodiments, the acquiring and processing the necessary information includes:
presetting a configuration object; the configuration object includes: topic, 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 comprises the following contents: topic, name, carrier configuration, information of recipient and sender (phone number or mailbox address), notification content.
Configuring operators to form sub-automatic routes configured by the operators;
in some embodiments, the configuring the operator includes:
setting 5 APIs, including: adding one operator, displaying all operators, deleting one operator, modifying one operator, and displaying the designated operator;
the request method of 5 APIs, the relative path of the request and the name of the requested API method are registered, and the sub-automatic route configured by the operator is formed through gin packets.
Specifically, the invention designs 5 APIs to configure and adjust operators before sending, which are respectively: adding one operator (createproviderHandler), displaying all operators (listprovidersHandler), deleting one operator (deleteproviderHandler), modifying one operator (updateproviderHandler), displaying the appointed operator (showproviderHandler), after 5 APIs are designed, registering the request method of the 5 APIs, the relative path of the request and the name of the requested API method, and integrating the request method, the request method and the name of the requested API method through gin package (Web framework of go language) to form the automatic route of the configuration of the operator. With the interworking between these five APIs, the user can configure the content of this part of the operator before delivery and can adjust it in time later when needed.
A template for processing the information to be transmitted in a text string processing mode is adopted to form a standard template;
the method and the device for processing the templates uniformly process the templates by means of template packages (templates), define template objects in the template packages (templates), and uniformly process information templates of contents to be sent by means of an exectetextstring processing method.
Configuring an information object; the information object comprises a theme, receiver and sender information and a sending content;
the invention abstracts an information object (Message) which comprises: the Message is the transmission object, and all operators perform transmission 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 route, the standard template and the information object are assembled in sequence to form two APIs of the sending service of the invention, one is a notification processing request (notify handler), the other is an alarm processing request (alert handler), then the request methods of the 2 APIs, the relative paths of the requests and the names of the requested APIs are registered, the automatic route of the sending service is formed by integrating gin packets (Web framework of go language), the notification processing request APIs are designed for a general sending scene, the alarm processing request APIs are designed for an alarm sending scene, and the two APIs are the basis for completing automatic sending.
It should be noted that, since each operator has the following differences in the transmission process: the required transmission information (i.e. configuration information of operators) is quite different, the types of transmission provided by the operators are also different (some operators can provide two services of short messages and mails at the same time, some operators can only provide one service), and the transmission mechanisms of different operators are also different (the respective transmission logics are different).
In order to solve the difference of information sent by operators, the invention abstracts the configuration information object of each operator, stores all key configuration information into the configuration information object, plays an aggregation role, and facilitates the unified processing at the later; in order to solve the difference of the transmission types provided by operators, the invention abstracts the objects of the operators, places the types of the operators and the configuration information of the operators and other necessary contents in the operator object, and at the moment, the processing of the configuration information of the operators is convenient for the processing of the current operator object, and when the operator object is newly built, the corresponding processing is carried out according to different transmission logics of the operators, so that different operators can be unified; the information processed by each operator is deconstructed one by one and aggregated into the information object (Message) in the sending logic of each operator thanks to the information object (Message) abstracted from the front, so that the sending object in the front sending purpose is formed, and then the error reporting processing is set in a key place according to the logic of each operator in the processing process, so that the necessary prompt can be conveniently carried out when the sending situation of each operator is tested later, and necessary adjustment can be made according to the prompt, so that the sending test is successful. After the above difference is solved, the configuration of each operator can be flexibly adjusted, and the configuration of each operator is: when a new operator is added, the operation is normalized according to the standard, and the expansion can be easily completed.
In some embodiments, the invoking chmod opens a use right to the container, comprising:
the call chmod command has read-write and executable rights to the user, group.
Preferably, the method further comprises the steps of, after calling chmod to open the use right to the container:
restarting the container, and modifying the service state of the container to be started.
Specifically, the method for deploying the environment service comprises the following specific steps:
(1) After the code is developed, a go build command is used on a local or cloud host to compile the code file into an executable file, and Xftp software is used to upload the executable file to a deployment environment appointed by a user.
(2) After uploading to the deployment environment, the executable file is placed in a container appointed by a short message service and a mail service, and then chmod+777 is used for commanding the opening authority, so that users (groups) and other (other) have the read-write and executable authorities, and the executable file can be opened to other services to use the service of the invention.
(3) Finally restarting the container, setting the service state of the invention as a starting state, and completing front-end and back-end interaction by the panel through the previously set automatic route configured by the operator, so that the user can configure and modify the operator at any time through the panel; the sending logic (such as alarm sending logic, which will be described in detail 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 the previous step, so that the sending service can be started at any time; thus, an automation capability can be created.
As a specific implementation, this application uses an example of practical application to further illustrate this automation capability, specifically taking alert sms and email sending as an example.
Before sending an application in a specific scene, some preparation work needs to be done: the user needs to apply for the rights of the use operator to the operator to obtain the configuration information of the operator, and can apply for the template report to the operator at this time. After that, the user can fill in the configuration information of the operator on the panel, and the configuration information is saved into the database through the back end; the user fills in the telephone number and mailbox address to be received at the position of the telephone and mailbox reserved on the panel for receiving the short message and the mail.
The conditions for triggering the alarm are: when the services are out of order, a basic group alarm notification is needed to be sent to an administrator, so that the administrator can carry out subsequent processing, and the whole sending process is carried out in an automatic mode. Because the alarm logic and the service logic of the invention are in butt joint when the service is deployed, the alarm notification information can be automatically sent to the administrator at the moment; the front abstract a receiver configured object, which contains the mobile phone number and mailbox address of the receiver, so that the number and address of the manager can be automatically searched in the process of sending, and the sending destination is known; because the templates are processed uniformly, the transmitted content can be displayed automatically, and finally an automatic process is formed, so that the automatic capability is formed.
As shown in fig. 2, the present application provides an automatic sending device for short messages and mails, including:
a processing module 201, configured to perform 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 of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard;
a deployment module 202, configured to deploy a service: compiling a 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 a use right for the container; the container is used for short messages and mail services;
a sending module 203, configured to automatically send: and acquiring telephone numbers and/or mailbox addresses of preset senders and receivers through the panel, and automatically sending short messages and mails through automatic routing and service deployment.
The working principle of the automatic sending device of short messages and mails provided by the application is that the processing module 201 processes necessary information: 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 of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard; the deployment module 202 performs service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services; the transmitting module 203 performs automatic transmission: and acquiring telephone numbers and/or mailbox addresses of preset senders and receivers through the panel, and automatically sending short messages and mails through automatic routing and service deployment.
The application provides a computer device comprising: the memory and processor may also include a network interface, the memory storing a computer program, the memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flash RAM). The computer device stores an operating system, with memory being an example of a computer-readable medium. The computer program, when executed by the processor, causes the processor to perform the method for automatically sending a short message and a mail, the structure shown in fig. 3 is merely a block diagram of a part of the structure related to the present application, and does not constitute a limitation of 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 drawings, or may combine some components, or have different component arrangements.
In one embodiment, the method for automatically sending short messages and mails provided in the application may be implemented in the form of a computer program, and the computer program may be executed 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 of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard; service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services; automatic transmission: and acquiring telephone 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.
The present application also 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 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 also proposes a computer readable storage medium storing a computer program which, when executed by a processor, 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 request and an API name of the request, and forming an automatic route of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard; service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services; automatic transmission: and acquiring telephone 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 invention provides a method and a device for automatically sending short messages and mails, which automatically realize various functions, save a great deal of manpower and material resources and enable the whole short message service and the electronic mail service to be more efficient; the personalized customization realized by the invention can better serve the user, so that the satisfaction degree of the user can be greatly increased; the invention realizes the mechanism of enriching operators, can greatly improve the service plane of short messages and mails and greatly improve the selection plane of users.
It can be understood that the above-provided method embodiments correspond to the above-described apparatus embodiments, and corresponding specific details may be referred to each other and will not be described herein.
It will be appreciated by those skilled in the art that 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, magnetic 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are 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 (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 request and an API name of the request, and forming an automatic route of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard;
service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services;
automatic transmission: and acquiring telephone 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.
2. The method of claim 1, wherein the obtaining and processing of the necessary information comprises:
presetting a configuration object; the configuration object includes: topic, 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 operators to form sub-automatic routes configured by the operators;
a template for processing the information to be transmitted in a text string processing mode is adopted to form a standard template;
configuring an information object; the information object comprises a theme, receiver and sender information and a 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.
3. The method of claim 2, wherein the configuring the operator comprises:
setting 5 APIs, including: adding one operator, displaying all operators, deleting one operator, modifying one operator, and displaying the designated operator;
the request method of 5 APIs, the relative path of the request and the name of the requested API method are registered, and the sub-automatic route configured by the operator is formed through gin packets.
4. The method of claim 1, wherein the invoking chmod opens a use right to the container, comprising:
the call chmod command has read-write and executable rights to the user, group.
5. The method of claim 1, wherein invoking chmod opens a use right to the container, further comprising thereafter:
restarting the container, and modifying the service state of the container to be started.
6. The method of claim 1, wherein the step of determining the position of the substrate comprises,
each operator has a separate transmission path.
7. The method of claim 5, wherein the step of determining the position of the probe is performed,
and the preset sending logic is set according to the application scene.
8. An automatic sending device for short messages and mails, which is characterized by comprising:
the processing module is used for processing necessary information: 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 of a sending service; the necessary information includes: the interfacing contents of the sender and the receiver, the related contents of the operator, the template contents and the sending standard;
a deployment module for service deployment: compiling a 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 a use right for the container; the container is used for short messages and mail services;
the sending module is used for automatically sending: and acquiring telephone numbers and/or mailbox addresses of preset senders and receivers through the panel, and automatically sending short messages and mails through automatic routing and service deployment.
9. A computer device, comprising: a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the automatic sending 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 computer program, when being executed by a processor, causes the processor to perform the automatic sending 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 CN115038054A (en) 2022-09-09
CN115038054B true 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 (10)

* 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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307037B2 (en) * 2000-01-10 2012-11-06 Bump Network, Inc. Inter vehicle communication system
US8880032B2 (en) * 2012-12-07 2014-11-04 At&T Intellectual Property I, L.P. Providing a masked short message service in a wireless network

Patent Citations (10)

* 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
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技术在短信推送中的应用;汪志莉;程煊;刘莉;;图书馆学刊(第05期);全文 *

Also Published As

Publication number Publication date
CN115038054A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
Chatras et al. NFV enabling network slicing for 5G
KR101105176B1 (en) Method of supplying content to a device
CN109684054A (en) Information processing method and device, electronic equipment and memory
JP2007523419A6 (en) How to supply content to a device
CN113301116A (en) Cross-network communication method, device, system and equipment for microservice application
CN111708619B (en) Distributed transaction processing method and system based on message queue and database
KR100738040B1 (en) Method for providing application Program Interface in open mobile business supporting system
US8185090B2 (en) Method and system for provisioning content in a mobile device management system
CN110213163B (en) Routing forwarding method and device based on nginx and zuul
EP3974960A1 (en) Method and system for automated testing of web service apis
CN115038054B (en) Automatic sending method and device for short messages and mails
CN108370329B (en) Management method and device for management function object
CN115996230B (en) Cross-cloud data synchronization method and device, computer equipment and readable storage medium
CN113268272B (en) Application delivery method, device and system based on private cloud
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
CN115567388A (en) Method, system, device and storage medium for automatically updating network slice configuration
CN111294404A (en) Processing method and device, computer equipment and medium suitable for various external short message services
CN116719876B (en) Time sequence data processing method and terminal based on rule engine
CN111538660B (en) Method and device for counting coverage rate of program codes in cloud container
CN109167826A (en) The restocking method, apparatus and system of WEB application
CN112748981B (en) Processing method and device for software mirror image of virtual network function
CN113452536B (en) Atomic object management method and device
CN114153488A (en) Application request processing method, device, system and medium

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