...

Developed or developing a new product in PureBasic? Tell the world about it.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Just getting around to trying it out. I get an error:

Something went wrong
Status:3
500 5.5.1 Command Unrecognized: "AUTH LOGIN"
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Thanks Heathen and gnozal, works like a charm here with my Cingular mobile. :)
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

SFSxOI wrote:Just getting around to trying it out. I get an error:

Something went wrong
Status:3
500 5.5.1 Command Unrecognized: "AUTH LOGIN"
PureSMTP uses LOGIN authentication if you specify username/password in PureSMTP_SendMail(). Maybe you don't need to authenticate or your server uses 'POP3 authentication before SMTP', so try using PureSMTP_OpenPOP3ThenSMTPConnection().
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

Sparkie wrote:Thanks Heathen and gnozal, works like a charm here with my Cingular mobile. :)
hehe yeah, that's the service which I tested it on since my wife uses them.
I love Purebasic.
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

ricardo wrote:
DarkDragon wrote:Really free? In what parts of the world?
Everywhere.

The idea is very simple:

You send an e mail to the mobile phone. Its receives it as an SMS.

Most companies offer this service for free to their users.

The important part is to know how to format the phone number to use it as the receipt for the e mail.

AFAIK has to eb done like this

Two digit for country code
4 digit for area code
Phone number without the frist 2 digits.

Per example, a mobile here in argentia is

54 02278 15872634

Then, must be formated like:

542278872634 (taking off the 15 of the mobile phone number and the 0 of the area code)

542278872634@whatevermail.com

Will send email to your phone

-------

As i said i develope sometime ago some app that does this for Argentina.
BUT i notice that some prepaid mobile phones in some cases (don't know which cases) DON'T receive this e mails.
Thats why i stop distributing this small app.
Cool, but do I need to choose the right provider then? Because mine isn't listed there.

Btw.: Area code for Germany is 49, right? And the leading 0 in Germany goes whereever then, right?
bye,
Daniel
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

DarkDragon wrote: Cool, but do I need to choose the right provider then? Because mine isn't listed there.

Btw.: Area code for Germany is 49, right? And the leading 0 in Germany goes whereever then, right?
You don't need to find a right provider but to find the server they use to derivate and receive email for your phone. Ask them.

Per example, in my case i use CTI as provider. CTI web page is cti.com.ar BUT that don't helps.

I found that need to use sms.ctimovil.com.ar to get emails to my mobile.

Once you get the appropiate server... you can send e mail to your mobile using any email client or develope some small app that does it.


---

Usually 0 of area codes get out for this.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I'd like to suggest a slightly modified event loop. In yours, if you open the combobox and type a letter, the list jumps to the first occurrence of that letter if it exists. This is good so far. However, when you type a second letter, it doesn't drill further down the list searching for the first+second letter, it starts over at the first occurrence of your second keypress in the list. With the suggested code, open the list and type 'V'. It jumps to "Verizon Pagers". Now type 'i'. It will drill down in the V's to "Virgin Mobile", which is what we use. This seems quicker and more intuitive (to me) Anyway, here it is, use or ignore at your whim:

Code: Select all

srch.s = ""
Repeat 
  Event = WaitWindowEvent() 
  If Event = #PB_Event_Gadget
    Select EventGadget()
      Case 0
        If GetGadgetText(0) = "Area:" : SetGadgetText(0,"") : EndIf
      Case 1
        If GetGadgetText(1) = "Phone Number:" : SetGadgetText(1,"") : EndIf
      Case 4 
        sendsms(GetGadgetText(0),GetGadgetText(1),GetGadgetText(5),GetGadgetText(2)) 
      Case 5
        If GetGadgetText(5) = "Subject:" : SetGadgetText(5,"") : EndIf
      Case 6
        If EventType() = 1
          keydown=0
          For i=65 To 90
            If GetAsyncKeyState_(i) & 32768
              keydown=i:Break
            EndIf 
          Next        
          If keydown
            srch+Chr(keydown)
            result = SendMessage_(GadgetID(6),#CB_FINDSTRING,0,@srch)
            If result = -1
              srch=""
              SetGadgetState(6,0)
            Else
              SetGadgetState(6,result) 
            EndIf
          EndIf
        EndIf
    EndSelect
  EndIf 
Until event = #PB_Event_CloseWindow 
BERESHEIT
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

ricardo wrote:Most companies offer this service for free to their users.
Oops, not sure, but i would say: Most companies don't offer this service for free to their users
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

netmaestro wrote:I'd like to suggest a slightly modified event loop. In yours, if you open the combobox and type a letter, the list jumps to the first occurrence of that letter if it exists. This is good so far. However, when you type a second letter, it doesn't drill further down the list searching for the first+second letter, it starts over at the first occurrence of your second keypress in the list. With the suggested code, open the list and type 'V'. It jumps to "Verizon Pagers". Now type 'i'. It will drill down in the V's to "Virgin Mobile", which is what we use. This seems quicker and more intuitive (to me) Anyway, here it is, use or ignore at your whim:

Code: Select all

srch.s = ""
Repeat 
  Event = WaitWindowEvent() 
  If Event = #PB_Event_Gadget
    Select EventGadget()
      Case 0
        If GetGadgetText(0) = "Area:" : SetGadgetText(0,"") : EndIf
      Case 1
        If GetGadgetText(1) = "Phone Number:" : SetGadgetText(1,"") : EndIf
      Case 4 
        sendsms(GetGadgetText(0),GetGadgetText(1),GetGadgetText(5),GetGadgetText(2)) 
      Case 5
        If GetGadgetText(5) = "Subject:" : SetGadgetText(5,"") : EndIf
      Case 6
        If EventType() = 1
          keydown=0
          For i=65 To 90
            If GetAsyncKeyState_(i) & 32768
              keydown=i:Break
            EndIf 
          Next        
          If keydown
            srch+Chr(keydown)
            result = SendMessage_(GadgetID(6),#CB_FINDSTRING,0,@srch)
            If result = -1
              srch=""
              SetGadgetState(6,0)
            Else
              SetGadgetState(6,result) 
            EndIf
          EndIf
        EndIf
    EndSelect
  EndIf 
Until event = #PB_Event_CloseWindow 
Thanks net, when I get home I will take a look and probably add it :)
I love Purebasic.
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

.....
Last edited by Heathen on Sat Oct 08, 2011 8:08 am, edited 1 time in total.
I love Purebasic.
CherokeeStalker
User
User
Posts: 66
Joined: Fri Oct 17, 2003 2:42 am

Error

Post by CherokeeStalker »

message: Something went wrong
Status:-3
530 5.7.0 Must issue a STARTTLS command first e17sm5093839qba

Using GMail SMTP & Receiving phone is a T-Mobile
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Error

Post by gnozal »

CherokeeStalker wrote:message: Something went wrong
Status:-3
530 5.7.0 Must issue a STARTTLS command first e17sm5093839qba

Using GMail SMTP & Receiving phone is a T-Mobile
PureSMTP and PurePOP3 won't work with GMAIL.
The Google Gmail Server requires an encrypted connection (SSL).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Post by QuimV »

:D Hi,
Anybody knows how should format my mobile phone number in spain, in order to use this service?
+34.627.000.000
Thanks
QuimV
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

And mine in Germany? It always just shows me errors about the length... .
bye,
Daniel
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

DarkDragon wrote:And mine in Germany? It always just shows me errors about the length... .
Yeah, if im not mistaken, german phone numbers have a different number of digits. Assuming their sms system works the same, you could just edit the source code to compensate for that.
I love Purebasic.
Locked