Hi All,

I am getting well annoyed with this, and the docs from Palm suck.

I want to send an SMS to a predefined number. My code is below. The problem
is that the '@' symbol gets converted to a 'j', the string "//EXG1" gets
appended to the message and the SMS exchange library ignores the number I
have set and promps for the user to enter one. How can I fix these things
please?

            Regards, Richard

  Err           result = errNone;
  ExgSocketType exgSocket;

  MemSet(&exgSocket, sizeof(exgSocket), 0);

  exgSocket.description = "Test SMS";
  exgSocket.name        = "_send:";    // default is SMS

  result = ExgPut(&exgSocket);

  if (result == errNone)
  {
    SmsParamsPtr smsParamsP = (SmsParamsPtr)exgSocket.socketRef;
    smsParamsP->data.send.destinationAddress = "+447734342214";
    ExgSend( &exgSocket, 
             "[EMAIL PROTECTED]", 
             sizeof("[EMAIL PROTECTED]"),
             &result );
    ExgDisconnect(&exgSocket, result);
  }


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to