Code Monkey home page Code Monkey logo

go-tinysms's Introduction

tinysms

Simple free SMS client using SMTP

codecov Build Status Go Report Card

This is a library is perfect for small projects you are only sending a small amount of SMS to a single phone or a few you know of. Unfortunately, you need to know the user's carrier to send SMS. If you don't want to have to ask your users that. Then this project is not for you. I recommend using Twilio for this if you plan on high volumn SMS messages.

Requirements

You are required to have an SMTP server to send SMS. Google provides this for free including few other major email providers. You will need to look up or ask your provider to give you SMTP access to send messages. This library currently only supports major US wireless carriers. If you would like to add one. Please make a PR request or open an issue!

Install

go get github.com/ajm113/go-tinysms

Usuage

import "github.com/ajm113/go-tinysms"

func main() {
	c := tinysms.NewClient(&tinysms.Options{
		// SMTP Server and login settings.
		Addr:        "smtp.gmail.com:587",
		Username:    "[email protected]",
		Password:    "testing",

		// How you want the from address to show on text messages.
		FromAddress: "[email protected]",
	})

	// Send a text message to a phone using AT&T.
	err := c.Send("5555555555", "AT&T", "tinysms Golang library is 1337!")
}

This project wants help!

Few things you can help improve the project!

  • Better carrier support of international carriers.
  • Improved documentation.
  • Better code coverage and unit tests.

License

MIT

Authors

  • Andrew McRobb

go-tinysms's People

Contributors

ajm113 avatar wynandbooysen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

forkkit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.