Skip to content

acmacalister/sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sms

What is sms?

A simple Golang sms library. Use email to send a sms. inspired from sms-fu.

Install

go get github.com/acmacalister/sms

Usage

sms is really simple. Check out the example below or have a look at the test. Note for the test to run you need to update the sms.yml with your own email account's username/password and a phone number to successfully send a sms.

package main

import (
  "github.com/acmacalister/sms"
  "log"
)

func main() {
  client, err := createClient("smtp.gmail.com", 587, "[email protected]", "test")
  if err != nil {
    log.Fatal(err)
  }
  if err := client.Deliver("5555555555", "AT&T", "sms golang library!"); err != nil {
    log.Fatal(err)
  }
}

License

sms is licensed under the Apache License.

Authors

ToDo

  • Test other carriers. (Currently only AT&T has been tested.)
  • Bring test coverage from 75% to 100%.

Releases

No releases published

Packages

No packages published

Languages