SendMessage Method

Sends a message to all recipients in the recipient list.

Syntax

ANSI (Cross Platform)
char* SendMessage(const char* lpszMessage);

Unicode (Windows)
LPWSTR SendMessage(LPCWSTR lpszMessage);
- (NSString*)sendMessage:(NSString*)message;
#define MID_SMPP_SENDMESSAGE 15

IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_SMPP_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

The methods sends a message to all recipients in the recipient list. The return value of this method is the server-assigned identifier of the message. The max size of the message sent is 256 bytes.

Error Handling (C++)

This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]