Public | Automated Build

Last pushed: a year ago
Short Description
email sender with Smsapi.pl compatible API
Full Description

SMS-API 2 EMAIL

Drop-in replacement for SMSAPI for testing environments

Features:

  • Send messages to mail address instead of SMS using simple API
  • Very simple API
  • REST API compatible with popular Smsapi.pl service
  • Easy integration with MailHog

How it works:

Application send messages to email address to@domain instead of SMS

where

  • to is query param in REST (this is usually phone number)
  • domain is environment variable DOMAIN (can be anything when using MailHog)

API

Endpoint: http://HOST:PORT/sms.do

Query parameters:

  • to phone number
  • message - content of message

Example

  • sending message using cURL
    curl 'http://localhost:8080/sms.do?username=user&from=smsapi&to=666777888&message=some_message'
    

run in docker

Docker image krzysbaranski/smsapi2email

docker run --rm -d --env DOMAIN=example.com --env SMTP_HOST=smtp.example.com --env SMTP_PORT=25 -p 8080:8080 krzysbaranski/smsapi2email
Docker Pull Command
Owner
krzysbaranski
Source Repository