Send message
SimPay::sending()->send()->single(
msisdn: '48123456789', // recipient, format 48XXXXXXXXX
content: 'Message content',
override: 'SimPay', // approved override (sender name)
control: 'your own value (optional)',
);Message is queued and its cost is withdrawn from your balance.
Response will be SendingQueuedResponse.
SimPay\Laravel\Exceptions\SimPayException will be thrown if message cannot be sent. Check errorCode:
OVERRIDE_NOT_FOUND- override does not exist or is not approvedINVALID_CONTENT- content is too long, contains invalid characters or is emptyPRICING_NOT_FOUND- no pricing assigned to your account
Last updated