see my file its working correctly
see my file its working correctly
I was asking for the API manual. Or if you know the website of your service provider, let me know. So that I could check the manual and check whether they allow multiple recipients in a single shot.
@useruseronline: Avoid posting EXE files. Post source code instead.
![]()
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD Athlon X2 5200+, ASUS Motherboard, 2 GB RAM, 400 GB HDD, Nvidia 8600 GT 512MB, 19.5" TFT(Wide), Creative 5.1 Home Theater
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...
this is the text code they send me
can u write the customer name and numbers in text file and attach
dont use data base to save recordsssss use text file
plz akhileshbc can you help me with the listview?
oh ok that a real problem![]()
what problem are u facing isnt it sending msg or not putting the phone number in text2 ?
you see this code?
lsXml = lsXml & "<TO>" & Text2 & "</TO>"
the text 2 is where i put the number and sends and its working.
but if i want to select all the users or 5 persons to send sms?
thats why i need a listview for that.
to select multiply numbers or just a couple of them
you get me my friend?
i need a listview that i can pick which person to send sms to thats it
got u pro .. add code to lsvw click event
when clicked it should add the text of item selected to listbox
then from there use my method can u do that ?
no getting u bro ..
u chose 3 cust ok
then u click snd buttn but it does not as text2 is empty rit ?
give me the code to fill the text box with one cust u select
which code?
i uploaded here all the codes
u send me wrong form there is no list its picture box no rit code .... i could have told u before but ignored it
something like this
Code:Dim i As Integer Dim PhoneNumbers As String Dim PhoneArray() As String For i = 1 To ListView1.ListItems.Count If ListView1.ListItems(i).Selected = True Then PhoneNumbers = PhoneNumbers & ListView1.ListItems(i).SubItems(1) & "," End If Next PhoneArray = Split(PhoneNumbers, ",") For i = 0 To UBound(PhoneArray) - 1 'Send Code... blah blah "mailto:" & PhoneArray(i) 'i will put example as debug.print Debug.Print "mailto:" & PhoneArray(i) Next
i attached a quick small example of listview
i hope now u get the listview method![]()
It looks like they allow multiple <TO> tags.
Have you tried that function that I posted ?
vb Code:
Private Function getSelectedNums() As String Dim temp As String temp = "" Dim i As Long For i = 1 To ListView1.ListItems.Count '~~~ Loop through the listview If ListView1.ListItems(i).Checked = True Then '~~~ if an item is checked temp = temp & "<TO>" & ListView1.ListItems(i).SubItems(1) & "</TO>" & vbCrLf '~~~ enclose the number in "<TO>" tags End If Next getSelectedNums = temp '~~~ return it End Function
Usage:
Code:'.... lsXml = lsXml & "<BODY><CONTENT>" & Text1 & "</CONTENT><DEST_LIST>" lsXml = lsXml & getSelectedNums() lsXml = lsXml & "</DEST_LIST></BODY>" '...![]()
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD Athlon X2 5200+, ASUS Motherboard, 2 GB RAM, 400 GB HDD, Nvidia 8600 GT 512MB, 19.5" TFT(Wide), Creative 5.1 Home Theater
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...
Last edited by salsa31; May 28th, 2012 at 12:56 AM.
"Not working" doesn't helps us to solve your issue !
You have to explain what have you tried and what happened.
![]()
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD Athlon X2 5200+, ASUS Motherboard, 2 GB RAM, 400 GB HDD, Nvidia 8600 GT 512MB, 19.5" TFT(Wide), Creative 5.1 Home Theater
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...
i put this - sXml = lsXml & "<TO>" & getSelectedNums() & "</TO>"
it dosnt give me any error
and its not sending the sms to the specific phone number that i choose from the listview
Last edited by salsa31; May 28th, 2012 at 12:57 PM.
tnx for everybody who tried to helpe me
but theres sometimes you cant do nothing.
useruseronline can you send me the code with the listbox plz?
the full code yes?
lsets say i want to send the sms through the listbox
how do i do that?
Last edited by salsa31; May 30th, 2012 at 01:57 AM.
I thought you told us your code was working and you could send sms to one number at a time.. If akhileshbc's code not working then why don't you use the example I gave you just loop throught the phone numbers selected and send one by one like you used to! We gave u anwsers and u still say its not working! The only change that you might need is to add a pause between each time you send an sms like the "sleep api" or timer control
Sleep 500
ya u can send it by listbox but not by list view , ok ?
ok
show me the code please
see the file
look this code
sXml = lsXml & "<TO>" & Text2 & "</TO>"
what do i write intsead of text 2?
this is the sending code bro
list2.text
dosnt work
Do one thing, replace that line with this:
In the above two lines, replace "number1" and "number2" with any 2 mobile numbers to test.Code:sXml = lsXml & "<TO>number1</TO>" sXml = lsXml & "<TO>number2</TO>"
See if the message was sent to those two numbers. If not, you could conclude that your API provider is preventing multiple recipients.
![]()
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD Athlon X2 5200+, ASUS Motherboard, 2 GB RAM, 400 GB HDD, Nvidia 8600 GT 512MB, 19.5" TFT(Wide), Creative 5.1 Home Theater
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...
dont put this in the place where i write to put code
sXml = lsXml & "<TO>" & Text2 & "</TO>"
place this code in the send button where u want to send the number
sXml = lsXml & "<TO>" & list2.text & "</TO>"
then put this code in my button
nameofursendbutton_click