Recently I am working on a text message notification function. The interface parameters are all written according to the document, but text messages cannot be sent. After checking for a long time, it turns out that the text message content has spaces. The English punctuation marks used in previous text messages have a space after the symbols. , using the date('Y-m-d H,i,s') function, and then after deleting all the spaces in the text message content, the message was sent successfully. It stands to reason that the text message
Recently I was working on a text message notification function. The interface parameters were all written according to the document, but text messages could not be sent. After checking for a long time, it turned out that the text message content had spaces . The previous text message The English punctuation marks used, there is a space after the symbol, and the date('Y-m-d H,i,s') function was used. Later, after all the spaces in the text message content were deleted, the message was sent successfully. It stands to reason that the text message content is There can be spaces, which may be text message content restricted by the SMS gateway platform.