According to http://www.internetlivestats.com there are over 1,900,835,866 websites world wide, most probably each and every one of them has a web form or <form></form> tags into them.
The developers that take jobs of building apps and websites often stop making any profit from the clients when the job is done, and as you know when SMTP server credentials change by client the form stops working and the whole website become not useful for small businesses when that happens.
In this blog post i want to share how a developer can keep interest in serving the client and make sure that their forms work reliability, make recurring income from them and WoW the client with the service provided.
What is CPaaS?
CPaaS stands for Communications Platform as a Service. A CPaaS is a platform that enables web or mobile developers to add real-time communications features (Voice, Video, and SMS, Phone numbers) in their own applications without needing to build backend infrastructure and interfaces. Basically we will focus how with a simple API request you can send a SMS text or initiate a phone call to any phone number in the world. You will need an account id and token with your request to be able to send successful messages/calls.Using CPaaS with <form></form> tags
Let’s start by a simple example, when the client fills a a contact form, we want to immediately call them by connecting to our call center number first then once we pickup call the customer phone number supplied in the form. This open GitHub repo demonstrates a simple contact form that will initiate a call to First Number (Call Center Number) and Second Number (Customer Number). Another simple curl example for sending out an SMS message is below:curl -X POST https://<accountSid>:<authToken>@cloud.restcomm.com/restcomm/2012-04-24/Accounts/<accountSid>/SMS/Messages -d "To=$customer" -d "From=$company" -d "Body=This is a test from $company_name"PHP Example on GitHub CPaaS has also Emails API which means with a similar curl request you can also handle emails sending, for example:
curl -X POST https://<accountSid>:<authToken>@cloud.restcomm.com/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Email/Messages -d "To=email@hotmail.com" -d "From=email@gmail.com" -d "Body=This is a test from RestComm" -d "Subject=Test Email"So by now you have added Email/Voice/SMS functionality into your web forms, now your clients have to top-up some funds with you on recurring basis to make sure that the functionality of SMS and Voice will work out of the box.