Where in the gateway.php is the codes for sending outgoing sms?

186 views
Skip to first unread message

acp...@gmail.com

unread,
Jan 25, 2013, 7:22:19 AM1/25/13
to enva...@googlegroups.com
Hi,

I am new to envayasms, i tried successfully to receive SMS to my server,
and the SMS reply back to the mobile ok.

I want to have the flexibility to disable reply to the sender, may be disable the codes
and just reply the status to the envayasms App that SMS received by Server successfully.

Where do i locate it ?

Many Thanks!

AC

Benedicto Joseph

unread,
Sep 6, 2018, 4:28:03 PM9/6/18
to envayasms
<?php
//Create a file example: queue.php just put it outside www folder(should be where send_sms.php is located)
//Put these codes and call this file from your browser, modify the implementation based on your algorithm
//These codes will create a file and put sms waiting to pooled by EnvayaSMS App based on your Poll Interval
require_once __DIR__."/config.php";
require_once dirname(__DIR__)."/EnvayaSMS.php";
$message = new EnvayaSMS_OutgoingMessage();
$message->id = uniqid("");
$message->to = "+255123456789";
$message->message = "Your message";
file_put_contents("$OUTGOING_DIR_NAME/{$message->id}.json", json_encode($message));
?>
Reply all
Reply to author
Forward
0 new messages