Osclass forums

Development => Plugins => Topic started by: Legion on November 21, 2012, 03:27:03 pm

Title: send sms to publisher/seller
Post by: Legion on November 21, 2012, 03:27:03 pm
more people use mobile phone it will be great if we put function at item.php to send sms


Thanks
Title: Re: send sms to publisher/seller
Post by: MIhaiOK on November 28, 2012, 07:14:03 am
I have developed for my site, now it is on test. But first you need a GateWay, after with HTTP POST GET you cand send sms with API
Title: Re: send sms to publisher/seller
Post by: Legion on November 29, 2012, 01:37:33 pm
thats great can you share with me i will get a gateway from smsgupshup.com
Title: Re: send sms to publisher/seller
Post by: bestamit on October 05, 2013, 10:10:06 am
hi i have sms gateway, let me know where to integrate the API
Title: Re: send sms to publisher/seller
Post by: bohrapar on October 07, 2013, 10:13:34 pm
Hi amit,

so did you manage to integrate the SMS gateway? Have you checked clickatell.com? I have been trying to integrate sms service for my site www.bartrit.com as well.Any advise?assistance would really be appreciated
Title: Re: send sms to publisher/seller
Post by: bestamit on October 08, 2013, 08:21:59 am
Hi ,
i m just near to completion :-)

Can smebdy tell me where the function  osc_sendMail($emailParams); is defined ?
so that

BY using TO parameter in $emailParams i can extract mobile number of user by using email and send the email subject via sms.
Title: Re: send sms to publisher/seller
Post by: teseo on October 08, 2013, 01:27:54 pm
Hi,

/oc-includes/osclass/utils.php

Regards
Title: Re: send sms to publisher/seller
Post by: bohrapar on October 10, 2013, 02:04:37 am
@amit, would you mind assisting us once youre done? How exactly are you implementing it? Is it just outgoing? Do you think it will be possible to have inbound sms service, where one could send a sms to post an advert on the site, or sms to register or search?

Title: Re: send sms to publisher/seller
Post by: aks on October 11, 2013, 11:41:36 pm
//SEND SMS
   $username=urlencode(''); $password=urlencode('');$sender=urlencode('');
   $message='';
   if(osc_user_phone_mobile()!=NULL)   
   {
   $mobile=osc_user_phone_mobile();
   $opts1 = array('http'=>array('method'=>"POST",'content' => "user=$username&password=$password&mobiles=91$mobile&message=$message&sender=$sender",'header'=>"Accept-language: en\r\n" ."\r\n"));
   $context1 = stream_context_create($opts1);
   $file1 = fopen("http://xxxxxxxx/xxx.php", "r", false, $context1);      
   $result1 = @stream_get_contents($file1);fpassthru($file1);fclose($file1);   
   }

add this at line no. 450 of util.php
Title: Re: send sms to publisher/seller
Post by: sigivr on October 15, 2013, 02:22:31 am
//SEND SMS
   $username=urlencode(''); $password=urlencode('');$sender=urlencode('');
   $message='';
   if(osc_user_phone_mobile()!=NULL)   
   {
   $mobile=osc_user_phone_mobile();
   $opts1 = array('http'=>array('method'=>"POST",'content' => "user=$username&password=$password&mobiles=91$mobile&message=$message&sender=$sender",'header'=>"Accept-language: en\r\n" ."\r\n"));
   $context1 = stream_context_create($opts1);
   $file1 = fopen("http://xxxxxxxx/xxx.php", "r", false, $context1);      
   $result1 = @stream_get_contents($file1);fpassthru($file1);fclose($file1);   
   }

add this at line no. 450 of util.php

This code is really working?
Title: Re: send sms to publisher/seller
Post by: aks on October 16, 2013, 01:11:12 pm
add above code in ItemActions.php below following code...

            if($flash_error != ''){
                return $flash_error;
            } else {
                osc_run_hook('hook_email_item_inquiry', $aItem);
            }
Title: Re: send sms to publisher/seller
Post by: bkarankar on October 30, 2014, 04:55:50 pm
//SEND SMS
   $username=urlencode(''); $password=urlencode('');$sender=urlencode('');
   $message='';
   if(osc_user_phone_mobile()!=NULL)   
   {
   $mobile=osc_user_phone_mobile();
   $opts1 = array('http'=>array('method'=>"POST",'content' => "user=$username&password=$password&mobiles=91$mobile&message=$message&sender=$sender",'header'=>"Accept-language: en\r\n" ."\r\n"));
   $context1 = stream_context_create($opts1);
   $file1 = fopen("http://xxxxxxxx/xxx.php", "r", false, $context1);      
   $result1 = @stream_get_contents($file1);fpassthru($file1);fclose($file1);   
   }

add this at line no. 450 of util.php

Hi,

Can you please help me, i am new in osclass and even dont know anything about php... my provider give me API as

http://myproviderURL/smsapi/pushsms.aspx?user=myusername&pwd=mypassword&to=0000000000&sid=myid&msg=test%20message&fl=0 (http://myproviderURL/smsapi/pushsms.aspx?user=myusername&pwd=mypassword&to=0000000000&sid=myid&msg=test%20message&fl=0)

this is the code which my provider give me to send sms.. i tried to add this in your code but didnt got success,, i am sure,, i am doing some mistake..

Can you please help me and let me know how i can implement this given API/code in osclass so seller can have sms if any buyer contact him.. and i also want to have sms validation for mobile number during registration..

please help.

Thanks
bhupesh
Title: Re: send sms to publisher/seller
Post by: SABTECH on January 08, 2018, 08:21:32 am
add above code in ItemActions.php below following code...

            if($flash_error != ''){
                return $flash_error;
            } else {
                osc_run_hook('hook_email_item_inquiry', $aItem);
            }






NB// where do i add the  SMS API?
Title: Re: send sms to publisher/seller
Post by: digitalsense on April 01, 2018, 01:43:35 pm
Hey have a look on this plugin https://market.osclass.org/plugins/messaging/sms-notification-world-wide-sms-support_936
Title: Re: send sms to publisher/seller
Post by: Abhi on August 30, 2018, 10:26:44 pm
Above plugin has a feature to send sms to seller or users