Preview: SendMock has no stable release yet. These docs follow develop.
SendMock
Reference

Magic numbers and addresses

The test phone numbers and email addresses that make SendMock simulate a delivery outcome.

Generated from SendMock's code, so it always matches the binary.

Send to one of these and SendMock answers as the real service would for that outcome, with no setup. They are on by default and can be turned off in Settings; your own rules are described in Custom outcome numbers and Custom outcome addresses.

SMS magic numbers

The Twilio numbers and error codes are Twilio's official test numbers, so the same tests pass against Twilio's test credentials. A whatsapp: prefix is ignored.

Twilio's test numbers as the recipient (To), refused when the message is sent

NumberWhat happensError code
+15005550001Invalid number21211
+15005550002Cannot route to this number21612
+15005550003No international permissions21408
+15005550004Number is blocked (opted out)21610
+15005550009Number cannot receive SMS21614

SendMock's numbers as the recipient (To), accepted and then changed by a status callback

NumberWhat happensError code
+15005550101Accepted, then undelivered (unreachable handset)30003
+15005550102Accepted, then undelivered (landline or unreachable carrier)30006
+15005550103Accepted, then undelivered (filtered by carrier)30007
+15005550104Accepted, then failed (unknown error)30008
+15005550105Accepted, delivered after 30 s
+15005550106Accepted, delivered, then read

Twilio's test numbers as the sender (From)

NumberWhat happensError code
+15005550001Invalid From21212
+15005550006Valid, passes
+15005550007Not owned or not SMS-capable21606
+15005550008Message queue full21611

Email magic addresses

Addresses compare without case. The Amazon SES mailbox simulator addresses work only on their own domain.

AddressWhat happens
delivered@<any domain>email.delivered
bounce@<any domain>Hard bounce (550 5.1.1)
bounce+hard@<any domain>Hard bounce (550 5.1.1)
bounce+soft@<any domain>email.deferred, then soft bounce
complaint@<any domain>Delivered, then email.complained
[email protected]email.delivered
[email protected]Hard bounce (550 5.1.1)
[email protected]Delivered, then email.complained
[email protected]Delivered, then an out-of-office reply
[email protected]Bounce with a suppression-list reason

On this page