simple way to send sms by tally

Discussion in 'Free Source Codes' started by kishan agrawal, Jan 11, 2015.

    
  1. teja varma

    teja varma Active Member


    please don't use browse url or remote url method because
    browse url - browser window will open while sending the sms
    remote url - it doesn't have feedback or reponse so we dont have any control weather if the message send to the destination or failed in the middle
    better ways:
    use http request post using xml attribute and fetch result in http response
    or
    create a dll which number and message as a parameter and return a response
    you can call dll using execute:com interface


    happy coding:)
     


  2. saket

    saket New Member


    Can anybody help me the below code i want to add message box that "do you want to send sms" yes or no

    [System: Formula]
    Billno : $$String:$Vouchernumber
    Mobileno : $Ledgermobile:Ledger:$Partyledgername
    Party : $$Stringwordex:$Partyledgername:" ":1



    Linemsg : "Dear%20Customer%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"has%20been%20generated%20From%20Saket%20Electronics."

    [#Form: Sales Color]
    Add : Button : SENT MSG

    [Button: SENT MSG]
    Option : SalesSMSA : $VoucherTypeName="Sales"

    [!Button: SalesSMSA]
    Key : Alt + S
    Action :Call :TestFunction

    [Function:TestFunction]
    10 : WALK COLLECTION : Send SMS Coll
    20 : MSGBox : "Status":"Message Sent \n Successful"
    30 : END WALK

    [Collection: Send SMS Coll]
    Remote URL :"http://msg.myctrlbox.com/API/WebSMS/Http/v2.3.6/api.php?username=xxxx&api_key=xxx&sender=xxxx&to=91"+@@Mobileno+"&message="+@@Linemsg



    ;; DEM

    [#Form: Sales Color]


    On : Form Accept: @@IsSales : CALL : TestFunction
     



  3. [#Form: Sales Color]
    On : Form Accept : yes : CALL : SendSalSMS
    [Function: SendSalSMS]

    001 : QUERYBOX : "Send SMS ?":Yes:No
    002 : IF : $$LastResult
    003 : WALK COLLECTION : Sales Coll
    004 : END WALK
    005 : MSGBOX: "Status" : "SMS Sent Sucessfully"
    006 : End If

    [Collection: Sales Coll]
     


  4. teja varma

    teja varma Active Member



  5. saket

    saket New Member


    how to use below code in POS Sales

    [System: Formula]
    Billno : $$String:$Vouchernumber
    Mobileno : $Ledgermobile:Ledger:$Partyledgername
    Party : $$Stringwordex:$Partyledgername:" ":1



    Linemsg : "Dear%20Customer%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"has%20been%20generated%20From%20Saket%20Electronics."

    [#Form: Sales Color]
    Add : Button : SENT MSG

    [Button: SENT MSG]
    Option : SalesSMSA : $VoucherTypeName="Sales"

    [!Button: SalesSMSA]
    Key : Alt + S
    Action :Call :TestFunction

    [Function:TestFunction]
    10 : QUERYBOX : "Send SMS ?" : Yes:No
    20 : IF : $$LastResult
    30 : WALK COLLECTION : Send SMS Coll
    40 : END WALK
    50 : MSGBox : "Status":"Message Sent \n Successful"
    60 : ENDIF

    [Collection: Send SMS Coll]
    Remote URL :"http://msg.myctrlbox.com/API/WebSMS/Http/v2.3.6/api.php?username=xxx&api_key=xxx&sender=xxx&to=91"+@@Mobileno+"&message="+@@Linemsg



    ;; DEM

    [#Form: Sales Color]


    On : Form Accept: YES : CALL : TestFunction
     


  6. teja varma

    teja varma Active Member


    [#Form:pOS Color]
     


  7. saket

    saket New Member


    But in POS sale invoice there is no mobile number field there is only name and address fiels
     


  8. saket

    saket New Member



  9. saket

    saket New Member


    how to use below code in POS Sales because in pos sales there is no mobile no field

    upload_2020-1-8_13-47-37.png

    [System: Formula]
    Billno : $$String:$Vouchernumber
    Mobileno : $Ledgermobile:Ledger:$Partyledgername
    Party : $$Stringwordex:$Partyledgername:" ":1



    Linemsg : "Dear%20Customer%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"has%20been%20generated%20From%20Saket%20Electronics."

    [#Form: Sales Color]
    Add : Button : SENT MSG

    [Button: SENT MSG]
    Option : SalesSMSA : $VoucherTypeName="Sales"

    [!Button: SalesSMSA]
    Key : Alt + S
    Action :Call :TestFunction

    [Function:TestFunction]
    10 : QUERYBOX : "Send SMS ?" : Yes:No
    20 : IF : $$LastResult
    30 : WALK COLLECTION : Send SMS Coll
    40 : END WALK
    50 : MSGBox : "Status":"Message Sent \n Successful"
    60 : ENDIF

    [Collection: Send SMS Coll]
    Remote URL :"http://msg.myctrlbox.com/API/WebSMS/Http/v2.3.6/api.php?username=xxx&api_key=xxx&sender=xxx&to=91"+@@Mobileno+"&message="+@@Linemsg



    ;; DEM

    [#Form: Sales Color]


    On : Form Accept: YES : CALL : TestFunction
     

    Attached Files:



  10. Adarsh Aggarwal

    Adarsh Aggarwal New Member




  11. Anyone explain the difference Between browseurl and remoteurl
     


  12. Mohibur

    Mohibur New Member


    Anyone help to sent sms qty & rate
     


  13. ANURAG954245

    ANURAG954245 Member


    i am using whatsapp api and its working absulutely fyn with the texts
    can someone prove the code also to send pdf along with the text


    i am using the below code

    [System: Formula]
    Billno : $$String:$Vouchernumber
    Mobileno : $Ledgermobile:Ledger:$Partyledgername
    Party : $$Stringwordex:$Partyledgername:" ":1



    Linemsg : "Dear%20Sir%20,"+",Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate

    [#Form: Sales Color]
    Add : Button : SENT MSG

    [Button: SENT MSG]
    Option : SalesSMS : $VoucherTypeName="Sales"

    [!Button: SalesSMS]
    Key : Ctrl+m
    Action:Browse URL: "http://www.xxx.com/sms.aspx?id=<username>&pwd=<password>&PhNo="+@@mobileno+ +"&text=" + @@Linemsg
    Title : "SENT MSG"
     


  14. ANURAG954245

    ANURAG954245 Member


    [#Form : Receipt Color]
    Add : On : At End : Form Accept : Yes : CALL : Do U Want To Send SMS for Receipt

    [Function : Do U Want To Send SMS for Receipt]

    001 : Query Box : " Do you want to Send \n SMS " : Yes : No
    002 : If : $$LastResult
    003 : CALL : SendSMSFunctionForReceipt
    004 : MSGBox : "Status":"Messgae Sent \n Sucessful"
    005 : Return
    006 : END if

    [Function:SendSMSFunctionForReceipt]
    00 : WALK COLLECTION : SendSMSFunctionForReceipt
    10 : END WALK
    [Collection: SendSMSFunctionForReceipt]
    Remote URL:"https://panel.rapiwha.com/send_message.php?apikey=22XSH4RK5GHZPOUYDQKU&number="+@@mobileno+"&text=" + @@LinemsgForReceipt


    [System: Formula]
    Mobileno : $Ledgermobile:Ledger:$Partyledgername
    LinemsgForReceipt : "Dear%20Customer%20"+"%20Payment%20Recived%20%20Rs%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20Thanking%20You%Tally%20Solutions%20"





    this code is not able to fetch ledger mobile number help me to correct this code
     


  15. Mohibur

    Mohibur New Member


    try
    $$String:$Ledgermobile:Ledger:$Ledgername
     


  16. ANURAG954245

    ANURAG954245 Member


    nope still not able to fetch the mobile number
     


Share This Page