Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SChaput

macrumors regular
Original poster
Jul 2, 2008
153
0
United States
Hello All,

Currently I am designing a web tool for my university that grabs the menu of the dining hall for that day, it then breaks the menu apart into breakfast, lunch, and dinner. Then it cycles through a mysql database and texts people the menu they signed up for, at certain times of the day.

Currently, I'm using the cellphone numbers email address as the way to text the phones, for example, 1234567890@att.txt.net, varies for different carriers obviously. However, when the text message comes through it has the following format,
FRM: myusername@box579.bluehost.com
SUBJ: Breakfast Menu for Tuesday
MSG: Whatever lack luster meal they are serving today

Is there a way that I can remove the FRM and SUBJ fields from this text message? I'm with with the MSG field but I could really do without the other two.

Thanks for your help.
 
Yes, I have discovered that leaving the subject field blank makes it disappear in the text message. So now I have the FRM: and the MSG: fields.

On another note i'm trying to change the FRM field from the default bluehost email, "username@boxXXX.bluehost.net" to an email account that I have on my server. However, when I manipulate the headers the way I want, it still tells me the email is from the @boxXXX address. Is this something I need to configure in the php code, or on the mail side? Here is the code I'm using:

Code:
<?php
$headers = "From: myemail@email.com\r\n";
mail("**************", "", "message", $headers);
?>
 
Please read again. I am suggesting services that will send an SMS directly, not via email, so that it appears the way it would if it were sent from a phone.
 
Free sms api

Try zeepmobile.com they have a free api for sending sms, but with ads in the sms. And if you don't want ads, you must pay.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.