Skip to content

Simple callback service to receive SMS from Nexmo number and then send an email with it's content.

Notifications You must be signed in to change notification settings

taiyeoguns/nexmo-sms-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nexmo SMS Webhook

Simple callback service to receive SMS from Nexmo number and then send an email with it's content.

Built with Python, Flask and Mailgun API.

Requirements

Installation

Clone Project

git clone https://github.com/taiyeoguns/nexmo-sms-webhook.git nexmo-sms-webhook

Install Requirements

With a virtualenv already set-up, install the requirements with pip:

pip install -r requirements.txt

Add details in .env file

Create .env file from example file and maintain necessary details in it e.g. Mailgun API Key, domain, email address to send to etc

cp .env.example .env

Start the server

Start the Flask web server by running:

python run.py

Server should usually be started at http://localhost:5000

Expose for external access

Use a tool like ngrok to make the local server available to the internet:

ngrok http 5000

This will expose a link such as: https://r4nd0m1d.ngrok.io that can be used in Nexmo Webhook URL configuration.

About

Simple callback service to receive SMS from Nexmo number and then send an email with it's content.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages