Documentation ¶
Overview ¶
Package sms provides types and methods to work with SMS delivery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRunningCurl = errors.New("sms: error running curl command")
)
Functions ¶
This section is empty.
Types ¶
type SMS ¶
type SMS struct { UseHTTPS bool // Use secure http Content string // SMS content Host string // SMS server hostname or ip Port string // SMS server port number Sender string // SMS sender Recipients []string // List of sms recipients Logger logger.Logger }
SMS contains properties required for sending SMS to an SMS gateway.
func (*SMS) SendNewSMS ¶ added in v2.4.0
func (s *SMS) SendNewSMS()
SendNewSMS sends sms text message via the configured SMS gateway.
Click to show internal directories.
Click to hide internal directories.