Clickatell callback url to receive messages not working
NickName:pinaki Ask DateTime:2015-01-14T00:29:50

Clickatell callback url to receive messages not working

I have a clickatell account and i am trying to receive messages in php using it. I understand that I need to setup a callback url on it and i have added that. In the callback url, i have added the following code snippet

<?php

$req = print_r($_REQUEST, true);
$req = wordwrap($req, 70, "\r\n");

error_log($req, 3, "test.log");
mail("<my-email-address>", "sms test", $req);

When i call the url directly, it is working as it should and sending me the mail as well as logging to the error log file. However, when i receive a text message in clickatell, nothing happens (no mail/log).

Am i missing something here? Any pointers are appreciated. Let me know if you need any additional details which would help to resolve/understand the problem.

Thanks

Copyright Notice:Content Author:「pinaki」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27926870/clickatell-callback-url-to-receive-messages-not-working

Answers
whatever_sa 2015-01-14T07:12:43

There are two things needed:\n\na) When you send your SMS message, you must ask for callbacks. How that is done depends on what API you are using. With the HTTP API, you would add &callback=3 as an example...\n\nb) On your API connection (when you login to the Clickatell website), you need to specify your callback URL. ",


More about “Clickatell callback url to receive messages not working” related questions

Clickatell callback url to receive messages not working

I have a clickatell account and i am trying to receive messages in php using it. I understand that I need to setup a callback url on it and i have added that. In the callback url, i have added the

Show Detail

sending multiple messages using clickatell gateway

I used php server side to connect with clickatell messages service , i used the soap api technique to make the connection . it is working .but in my code , i can send just one message at the same t...

Show Detail

Impementing Clickatell CallBack in ASP.NET using C#.NET

I am building a web application in ASP.NET using C#.NET which sends a SMS using clickatell. I am trying unsuccessfully to receive a status back from clickatell by creating a CallBack Page called

Show Detail

Cannot get Clickatell-provided HTTP API to send MMS messages

According to my Clickatell Americas 2-Way SMS/MMS service at: https://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf Page: 21 Section: "5.4 MMS Push" One should be able to send a Multimedia

Show Detail

clickatell sms messages fail with no error or notification for non-US numbers

I have a web application that sends verification codes to users through clickatell. Nearly all users are in the US, and those work fine, but I have about 5 with international phone numbers who rece...

Show Detail

Clickatell tells that SMS a successfully sent to gateway but messages are not delivered

I'm trying to establish SMS sending with Node.js via Clickatell. I've already tried the way described here: https://www.clickatell.com/developers/api-documentation/nodejs/ And both REST and HTTP

Show Detail

C# clickatell to send SMS HTTP GET request

I want to send a simple message using the service Clickatell. I don't want to read the response, it will be simple GET request to send a message. The service provides the request looks like: htt...

Show Detail

Clickatell - WhatsApp Template - One API

I try to send a WhatsApp template message using the Clickatell One API end point. Here is my payload. I'm send this against the endpoint with POST. { &quot;messages&quot;:[ { ...

Show Detail

Format sms messages in Clickatell

We are sending sms messages to the registered users via the system using Clickatell API. I got a requirement of formatting the SMS messages as follows. The objective is to deliver a user friendly SMS

Show Detail

Clickatell - Whatsapp integration

I'm trying to send a test message using Whatsapp and I'm getting this error message: "error":{"code":27,"description":"Recipient not available on channel."} I did find the error message h

Show Detail