Question on auto-response text | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through April 12, 2010 ⬆ |
◄ ► |
Author | Message | ||||
jayrom villaruz New member Username: Jj_v30 Post Number: 4 Registered: 02-2010 |
In order to send a response to a certain message, it is important to change the content-type of the page to pure text. I have already done it but still, the commands cannot be completed. The reply says that the content-type is HTML. When tested on a browser, the echo would be: 4ita: it103, 2-3pm friday, NO CLASSES. -- 3itc: it102, 1-2pm thursday, no classes -- I dont know which of these texts are of html format. I dont understand why it cannot be sent as a reply. Can someone help me please. | ||||
jayrom villaruz New member Username: Jj_v30 Post Number: 5 Registered: 02-2010 |
here is the actual php file. i dont find anything wrong here. but it seems that the content-type: text/plain at the start of the code is being ignored??or something else is going on. thanks in advance!
| ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1828 Registered: 08-2008 |
Hi, In the area after you set the content-type, remove the ?> <?php Closing and reopening the PHP section might be resetting the Content-Type to its default. -- Des NowSMS Support | ||||
jayrom villaruz New member Username: Jj_v30 Post Number: 6 Registered: 02-2010 |
des, thanks for the reply. i found out that the main reason for this is that the program was producing an error(the error was produced by html, so the reply that nowsms was getting was in fact in html format - my bad). but yeah, closing and reopening it could be resetting the content-type. |