Rogers Email-to-Text Changes...

fly

New Member
Feb 1, 2005
1
0
1
Great code :D - I had to change a couple of things as shown in the code below. Carriage returns replaced by spaces... had to use the strlen, and bumped the character number up to 160.
(I'm new to php, but it all worked somehow)

$result = strlen($message);
$message = str_replace(chr(10), " ", $message);
if($result > 160){
$cut = substr($message, 0, 160);
$message = $cut;

Rogers is a pain.
 

fly

New Member
Feb 1, 2005
1
0
1
Great code :D - I had to change a couple of things as shown in the code below. Carriage returns replaced by spaces... had to use the strlen, and bumped the character number up to 160.
(I'm new to php, but it all worked somehow)

$result = strlen($message);
$message = str_replace(chr(10), " ", $message);
if($result > 160){
$cut = substr($message, 0, 160);
$message = $cut;

Rogers is a pain.
 

trytemptemp

New Member
Feb 4, 2005
2
0
1
guys, I sell rogers cell phone
be honest , rogers mess up completely last 2 yrs
the ways they make money from people are absolutely dirty

serveral things I have to point out, please notice
(It is important to you because the worst can happen to to you if you dont look at it, and your credit history can be affected!!!!!!!)


Before 2003, they would not put anything up on your credit breau report
However, since early 2004, they started to open up a new file on your credit report. I know this because I check my credit report once a while. and the last one I saw I have a file that regarding the rogers service I subscribe
It only shown on the tranuniion one , not the equifax one

before that, if a customer found out he was overcharged on the bill, he probbably would not pay until the problem was solved
so which mean he had some power to "fight" for it
now different. your credit file is on their hands. If you dont pay whatever they think you have to pay even if you think you are overcharged

chances you report would got mess up first. you will get into a much deeper trouble than what you would have thought.

It is more like you have to pay whatever they tell you so
although many charges are made up from some very fancy names such as 'email to text' or " hamburger to pizza"

2. I have to point out, they try to renew your contract whenever they have a chance. some plans such as megatime will automatically hook up with years in which many customer dont know that or not noticing them

3. whenever you deal with a rogers rep on the phone
you have to be careful with them. trust me
If you ask them if their an "adminstration fee"
they probably would say no and end up charge you as "system access fee". you guys need to be careful at the time you ask question because they may give u the answer which is partially true. you cant say they are lying. I have dealed with many customer service rep and some of them may even say something like " customers have never asked us not to charge them for that fee so which mean we have the rights to do so"

just like a person kill you is correct because you have never asked this person not to kill you.


4. neverever give too much information to rogers. just enough to open an account is fine. or you will receive uncountable advertisment just like you sons and daugther keep asking money from you.

5. pay as you go is good because they can never open a credit file for this server. If u lose the account for any reason, all you have lost is the money you spent on the last pay as you go card

6. NEVEREVER EVER EVER give them your credit card number or bank information. You rather pay after you recieve you invoice or using pay go card.

this company is very very dishonest at the time they advertise because there are so many hidden clause
" For example, they will put up the big sign of $35 plan
however, the system access fee would be in small prints
and many customer especially old people would oversee them because they cant read it or they got confused

Imagine if you walk in McDonald and wants to buy a hamburger, and the cashier tells you " Free hamburger, Free Coke , " then she tells you " $1.69 cooking fee applied" this is crazy world

I prefer they advertise the total cost of the cell phone
rather than something like "free phone but charges applied."
 

trytemptemp

New Member
Feb 4, 2005
2
0
1
guys, I sell rogers cell phone
be honest , rogers mess up completely last 2 yrs
the ways they make money from people are absolutely dirty

serveral things I have to point out, please notice
(It is important to you because the worst can happen to to you if you dont look at it, and your credit history can be affected!!!!!!!)


Before 2003, they would not put anything up on your credit breau report
However, since early 2004, they started to open up a new file on your credit report. I know this because I check my credit report once a while. and the last one I saw I have a file that regarding the rogers service I subscribe
It only shown on the tranuniion one , not the equifax one

before that, if a customer found out he was overcharged on the bill, he probbably would not pay until the problem was solved
so which mean he had some power to "fight" for it
now different. your credit file is on their hands. If you dont pay whatever they think you have to pay even if you think you are overcharged

chances you report would got mess up first. you will get into a much deeper trouble than what you would have thought.

It is more like you have to pay whatever they tell you so
although many charges are made up from some very fancy names such as 'email to text' or " hamburger to pizza"

2. I have to point out, they try to renew your contract whenever they have a chance. some plans such as megatime will automatically hook up with years in which many customer dont know that or not noticing them

3. whenever you deal with a rogers rep on the phone
you have to be careful with them. trust me
If you ask them if their an "adminstration fee"
they probably would say no and end up charge you as "system access fee". you guys need to be careful at the time you ask question because they may give u the answer which is partially true. you cant say they are lying. I have dealed with many customer service rep and some of them may even say something like " customers have never asked us not to charge them for that fee so which mean we have the rights to do so"

just like a person kill you is correct because you have never asked this person not to kill you.


4. neverever give too much information to rogers. just enough to open an account is fine. or you will receive uncountable advertisment just like you sons and daugther keep asking money from you.

5. pay as you go is good because they can never open a credit file for this server. If u lose the account for any reason, all you have lost is the money you spent on the last pay as you go card

6. NEVEREVER EVER EVER give them your credit card number or bank information. You rather pay after you recieve you invoice or using pay go card.

this company is very very dishonest at the time they advertise because there are so many hidden clause
" For example, they will put up the big sign of $35 plan
however, the system access fee would be in small prints
and many customer especially old people would oversee them because they cant read it or they got confused

Imagine if you walk in McDonald and wants to buy a hamburger, and the cashier tells you " Free hamburger, Free Coke , " then she tells you " $1.69 cooking fee applied" this is crazy world

I prefer they advertise the total cost of the cell phone
rather than something like "free phone but charges applied."
 

trytemptemp

New Member
Feb 4, 2005
2
0
1
guys, I sell rogers cell phone
be honest , rogers mess up completely last 2 yrs
the ways they make money from people are absolutely dirty

serveral things I have to point out, please notice
(It is important to you because the worst can happen to to you if you dont look at it, and your credit history can be affected!!!!!!!)


Before 2003, they would not put anything up on your credit breau report
However, since early 2004, they started to open up a new file on your credit report. I know this because I check my credit report once a while. and the last one I saw I have a file that regarding the rogers service I subscribe
It only shown on the tranuniion one , not the equifax one

before that, if a customer found out he was overcharged on the bill, he probbably would not pay until the problem was solved
so which mean he had some power to "fight" for it
now different. your credit file is on their hands. If you dont pay whatever they think you have to pay even if you think you are overcharged

chances you report would got mess up first. you will get into a much deeper trouble than what you would have thought.

It is more like you have to pay whatever they tell you so
although many charges are made up from some very fancy names such as 'email to text' or " hamburger to pizza"

2. I have to point out, they try to renew your contract whenever they have a chance. some plans such as megatime will automatically hook up with years in which many customer dont know that or not noticing them

3. whenever you deal with a rogers rep on the phone
you have to be careful with them. trust me
If you ask them if their an "adminstration fee"
they probably would say no and end up charge you as "system access fee". you guys need to be careful at the time you ask question because they may give u the answer which is partially true. you cant say they are lying. I have dealed with many customer service rep and some of them may even say something like " customers have never asked us not to charge them for that fee so which mean we have the rights to do so"

just like a person kill you is correct because you have never asked this person not to kill you.


4. neverever give too much information to rogers. just enough to open an account is fine. or you will receive uncountable advertisment just like you sons and daugther keep asking money from you.

5. pay as you go is good because they can never open a credit file for this server. If u lose the account for any reason, all you have lost is the money you spent on the last pay as you go card

6. NEVEREVER EVER EVER give them your credit card number or bank information. You rather pay after you recieve you invoice or using pay go card.

this company is very very dishonest at the time they advertise because there are so many hidden clause
" For example, they will put up the big sign of $35 plan
however, the system access fee would be in small prints
and many customer especially old people would oversee them because they cant read it or they got confused

Imagine if you walk in McDonald and wants to buy a hamburger, and the cashier tells you " Free hamburger, Free Coke , " then she tells you " $1.69 cooking fee applied" this is crazy world

I prefer they advertise the total cost of the cell phone
rather than something like "free phone but charges applied."
 

trytemptemp

New Member
Feb 4, 2005
2
0
1
From now on

McDonald's Restaurant will no longer charge you for food

You can get free hamburgers , free drinks and free french fries

for you rest of your life.

However, $1 to $4 admin fee will apply for each FREE item and tax

extra
 

trytemptemp

New Member
Feb 4, 2005
2
0
1
From now on

McDonald's Restaurant will no longer charge you for food

You can get free hamburgers , free drinks and free french fries

for you rest of your life.

However, $1 to $4 admin fee will apply for each FREE item and tax

extra
 

trytemptemp

New Member
Feb 4, 2005
2
0
1
From now on

McDonald's Restaurant will no longer charge you for food

You can get free hamburgers , free drinks and free french fries

for you rest of your life.

However, $1 to $4 admin fee will apply for each FREE item and tax

extra
 

dbcookcan

New Member
Feb 9, 2005
1
0
1
Kudos Brickhost on the PHP code!

Yes, I was equally ticked off at this money grabber and serious inconvenience. I have a whack of servers that email me alert conditions that this messes up considerably.

I had to add "/notls" after to port info in config.php but all else works famously. Hats off to an enterprising spirit!
 

dbcookcan

New Member
Feb 9, 2005
1
0
1
Kudos Brickhost on the PHP code!

Yes, I was equally ticked off at this money grabber and serious inconvenience. I have a whack of servers that email me alert conditions that this messes up considerably.

I had to add "/notls" after to port info in config.php but all else works famously. Hats off to an enterprising spirit!
 

dbcookcan

New Member
Feb 9, 2005
1
0
1
Kudos Brickhost on the PHP code!

Yes, I was equally ticked off at this money grabber and serious inconvenience. I have a whack of servers that email me alert conditions that this messes up considerably.

I had to add "/notls" after to port info in config.php but all else works famously. Hats off to an enterprising spirit!
 

aryko

New Member
Mar 8, 2005
9
0
1
RE: Rogers Email-to-Text

Congrats on the original idea. I've expanded on the scripts and made it so emails you send from your phone back to the server can activate additional functions. From the summary file:

With the scripts auto.php and function.php, not only will your server send SMS copies of new mail received to your cell phone, but you can send an email commands to the address via an SMS email for extended functionality. Normally the email copy of new mail received will be limited to 160 characters; you can retrieve entire messages in 160-character chunks, send an email or reply via your email address, forward an email or get a status of messages in your email account.

You can find these scripts in the 'documents' section at:
http://groups.msn.com/RogersTXT2Email

Feel free to modify, improve, or whatever.
- aryko
 

Icarus3000

New Member
Mar 9, 2005
6
0
1
RE: Rogers Email-to-Text

aryko:

I've been looking for something like this for months!

Unfortunately my web authoring skills are non-existent... I have webspace, and know how to upload stuff to it, but you lost me on a couple of things.

Can you elaborate on what this means:

1. "CHMOD sent.inc with 777"
2. "Start a cronjob referencing auto.php to run the file at whatever interval you like."

Also, is there any easier way for someone to send me an SMS from a computer other than using Rogers site (where they have to enter the special code each time). I suppose if I can get the .php stuff worked out, they can just send me an email!

Thanks!
Icarus

Edit: Better yet, is there a way to set up something like this that will work with the Rogers network, so that it sends a direct text message, not something I have to "Reply" (read: PAY) to read?
http://www.page-me.com/make_own_button.html
 

aryko

New Member
Mar 8, 2005
9
0
1
Re: RE: Rogers Email-to-Text

Hi Icarus,

Icarus3000 said:
aryko:
Can you elaborate on what this means:
1. "CHMOD sent.inc with 777"
2. "Start a cronjob referencing auto.php to run the file at whatever interval you like."

1. You need to set the permission on the sent.inc file so that it can be written to. In your ftp program, or web server's file manager application, there should be the option to set the permissions on the file. In many ftp programs this is known as CHMOD (I don't know what it stands for), and permissions are broken down into read, write and execute. It may not matter - your server may be able to write to it no problem - but I had a problem with mine that required it to be write-enabled. Hope that elaborates.

2. Again, from your webserver, you need to be able to set up a service that runs the script on a regular basis for it to be of any use. In most web servers you have access to a function called "cronjob" - which is basically just an automated way of running the same command over and over again. Look in your control panel for the cronjob function. If you don't one, you may be out of luck, because it means to access the function on an automated basis you need something like this. For your 'click to sms me' function this wouldn't be a big deal as the user's accessing the page would cause the script to activate.

Icarus3000 said:
Edit: Better yet, is there a way to set up something like this that will work with the Rogers network, so that it sends a direct text message, not something I have to "Reply" (read: PAY) to read?

It's indeed possible; you'd just set up a form for the user to type in their message, and when they clicked on the submit button, it would send the message through the Rogers gateway and it would arrive as an SMS.

Something like this:
Code:
Filename: icarus_sms.php

<?PHP

include("config.php");

function send_sms($message)
{	global $smsnum;
	$sizebox = mb_strlen($message);

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, "http://216.129.53.44:8080/cgi-bin/send_sm_rogers.new");
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, "msisdn=$smsnum&text=$message&SIZEBOX=$sizebox");
	curl_exec($ch);
	curl_close($ch);
	echo "[b]Your SMS message has been sent.[/b]\n";
}

echo "<html>\n";
echo "<head>\n";
echo "<title>Send me an SMS!</title>\n";
echo "</head>\n";
echo "<body>\n";
echo "<h2>Send an SMS message to Icarus' cell phone!</h2>\n";

if ( $submit )
{	echo "

\n";
	if ( $message )
	{	send_sms($message);
		unset($message);
	}
	else
	{	echo "[b]You must enter a message![/b]\n"; }
}

echo "<form method=\"post\" action=\"icarus_sms.php\">\n";
echo "

Enter your message here:
\n";
echo "<textarea name=\"message\" rows=3 cols=50></textarea>
\n";
echo "[i]Only the first 160 characters will be transmitted![/i]\n";
echo "

<input type=\"submit\" name=\"submit\" value=\"SEND\">\n";
echo "</form>\n";
		
echo "</body>\n";
echo "</html>\n";

?>

It'll still show the Rogers results box (there are probably better ways to handle that) but it works.
- aryko
 

Icarus3000

New Member
Mar 9, 2005
6
0
1
Let me see if I understand this:

To use the "instant SMS" function, in config.php, the ONLY thing I really need is to set $smsnum to my cell phone number. Do I need 1-416-xxx-xxxx, or just 416-xxx-xxxx?

Then I use the icarus_sms.php file EXACTLY as you posted above.

I tried this, but when I click "SEND", it just re-loads the same form, and it doesn't look like anything happens. I see in the code that it should give an error message "You must enter a message!" if the form is blank, but that doesn't seem to work either.

Am I doing something wrong? I just have the icarus_sms.php and config.php files in an /sms/ directory on my webpage.
 

aryko

New Member
Mar 8, 2005
9
0
1
RE: Rogers Email-to-Text

Icarus,
I don't think it matters if it's 1-416 or 416 (I just use 416XXXXXXX). I'm not sure what the problem is. If you're getting the textbox / submit button, the code is executing properly. I ran this script on my own server and it worked fine (cold comfort, I know).
- aryko
 

Icarus3000

New Member
Mar 9, 2005
6
0
1
hmm... more problems..

I can't get the original code to execute at all. Some problem with imap_open.

I get the error message:

Fatal error: Call to undefined function: imap_open() in /home/vhosts/mywebpage.com/config.php on line 25

the imap_open line (line 25) in my code is:

$mbox = imap_open ("{pop6.sympatico.ca:110/pop3}INBOX", "myname@sympatico.ca", "mypassword");
 

Simon

New Member
Mar 9, 2005
4
0
1
I also get the same errors that Icarus3000 is getting :

Warning: imap_open(): Couldn't open stream {localhost:110/pop3}INBOX
in /sms/config.php on line 25
Warning: imap_check(): supplied argument is not a valid imap resource
in /sms/auto.php on line 28
Warning: imap_fetch_overview(): supplied argument is not a valid imap
resource in /sms/auto.php on line 29
Warning: imap_close(): supplied argument is not a valid imap resource
in /sms/auto.php on line 109
 

aryko

New Member
Mar 8, 2005
9
0
1
RE: Rogers Email-to-Text

Alrighty, one at a time.

Simon: Your error is simpler than Icarus', in that your code is working, it's just not configured correctly. Everything hangs on imap_open, so if it doesn't work, nothing else will (hence the other errors). Try:
Code:
$mbox = imap_open("{mypopserver.com/pop3:110/notls}INBOX", "email@yourdomain.com", "password");
Where "mypopserver.com" is the address of your pop server; you might also get away with "localhost".

Your pop server may require different config codes, check the comment section of the original config.php for details.

Icarus: you might try the same code as above, but if it's giving you an error saying that imap_open is an undefined function, you may have a problem. Are you sure your web server supports PHP? I think PHP version 3 introduced imap functions, and now generally web servers come with version 4 or even 5 as standard...
If you're not familiar with PHP coding, you can easily mess things up. My suggestion would be to start over and try again.
- aryko
 

Icarus3000

New Member
Mar 9, 2005
6
0
1
Well, I managed to put something together...
I can now send instant SMS messages without going through Rogers site by using this (hobbled together) code (which is no longer PHP I suppose...):


File: SMS.html

<body onload="javascript:document.SendSMSForm">
<h2>Send Message to Cell Phone</h2>
<form method="post" name="SendSMSForm"
action="http://216.129.53.44:8080/cgi-bin/send_sm_rogers.new">
Rogers 10-digit PCS Number:
<input type="text" name="msisdn" value="XXXXXXXXXX" size="10" maxlength="10">



Message (max 160 chars):


<textarea rows="4" cols="40" name="text" maxlength="160" wrap=virtual>
</textarea>







<input type="submit" value="Send Message">
</body>

Still need to work on the imap e-mail thing though...