Home  >  Article  >  php教程  >  PHP SMS gateway SMS content cannot have spaces

PHP SMS gateway SMS content cannot have spaces

WBOY
WBOYOriginal
2016-07-06 13:30:341393browse

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.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn