sms

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendSMS

func SendSMS(sc SmsContent)

SendSMS sends a text message using the content of SmsContent struct. The caller is required to initialize SmsContent with correct values for all fields. Furthermore, a preconfigured SMS server is required.

Types

type SmsContent

type SmsContent struct {
	Host       string // hostname or ip
	Port       string
	Sender     string   // to identify the sms sender
	Text       string   // sms text
	Recipients []string // msisdn list of recipients
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL