I have an online form that fills users and registers I want them to receive an SMS alert Report that their registration was successful. I also have a way API.
When you write this link in the brush:
, your registration was successful
it
This is my code, the result is not in the received SMS message:
Send SMS and send email here ('jit_user', 'nem-piro'); Defined ('jit_pwd', 'xxxxxx'); Defined ('enable_sms', 1); Defined ('credit_load', 5); Defined ('smssenderid', 'sampleID'); If (enabled_sms) {$ jit_user = jit_user; $ Jit_pwd = jit_pwd; $ Mobile = $ data- & gt; mobile; $ SmsBody = "Hello {$ surname} {$ alias name}, your registration was successful. Thanks!"; $ SmsSender = smssenderid; $ Link = "http://sms.brantilo.com:8080/bulksms/bulksms?username={$jit_user}&password={$jit_pwd}&type=0&dlr=1&destination=". Urlencode ($ mobile) "And source =". Urlencode ($ smsSender) "And message =". Urlencode ($ smsBody); $ Result = file_get_contents ($ link); } // Send SMS and email here $ session-> Data ['UTMEregnum'] = $ reg; $ Session- & gt; Data ['data'] = $ data; $ Session- & gt; Save (); $ Ref_from = "./utme-register-ok.php"; } And {$ ref_from = "./register.php?err=signup_no"; }
No comments:
Post a Comment