For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 approved

  • INVALID_CONTENT - content is too long, contains invalid characters or is empty

  • PRICING_NOT_FOUND - no pricing assigned to your account

Last updated