Advertisement:

Author Topic: send sms to publisher/seller  (Read 6397 times)

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
send sms to publisher/seller
« 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

MIhaiOK

  • Newbie
  • *
  • Posts: 11
Re: send sms to publisher/seller
« Reply #1 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

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: send sms to publisher/seller
« Reply #2 on: November 29, 2012, 01:37:33 pm »
thats great can you share with me i will get a gateway from smsgupshup.com

bestamit

  • Newbie
  • *
  • Posts: 5
Re: send sms to publisher/seller
« Reply #3 on: October 05, 2013, 10:10:06 am »
hi i have sms gateway, let me know where to integrate the API

bohrapar

  • Jr. Member
  • **
  • Posts: 51
Re: send sms to publisher/seller
« Reply #4 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

bestamit

  • Newbie
  • *
  • Posts: 5
Re: send sms to publisher/seller
« Reply #5 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.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: send sms to publisher/seller
« Reply #6 on: October 08, 2013, 01:27:54 pm »
Hi,

/oc-includes/osclass/utils.php

Regards

bohrapar

  • Jr. Member
  • **
  • Posts: 51
Re: send sms to publisher/seller
« Reply #7 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?


aks

  • Full Member
  • ***
  • Posts: 179
Re: send sms to publisher/seller
« Reply #8 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

sigivr

  • Sr. Member
  • ****
  • Posts: 471
Re: send sms to publisher/seller
« Reply #9 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?

aks

  • Full Member
  • ***
  • Posts: 179
Re: send sms to publisher/seller
« Reply #10 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);
            }

bkarankar

  • Newbie
  • *
  • Posts: 1
Re: send sms to publisher/seller
« Reply #11 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

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

SABTECH

  • Newbie
  • *
  • Posts: 34
Re: send sms to publisher/seller
« Reply #12 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?

digitalsense

  • Jr. Member
  • **
  • Posts: 94
  • Hello there!
Re: send sms to publisher/seller
« Reply #13 on: April 01, 2018, 01:43:35 pm »

Abhi

  • Jr. Member
  • **
  • Posts: 77
  • Love what you do :)
Re: send sms to publisher/seller
« Reply #14 on: August 30, 2018, 10:26:44 pm »
Above plugin has a feature to send sms to seller or users