Question on auto-response text

Question on auto-response text SearchSearch
Author Message
jayrom villaruz
New member
Username: Jj_v30

Post Number: 4
Registered: 02-2010
Posted on Sunday, February 21, 2010 - 12:47 pm:   

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
Posted on Sunday, February 21, 2010 - 02:34 pm:   

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!

application/octet-streamsample code.
inq_sms.php (2.3 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1828
Registered: 08-2008
Posted on Monday, February 22, 2010 - 05:14 pm:   

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
Posted on Wednesday, February 24, 2010 - 02:24 am:   

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.