Rogers Email-to-Text Changes...
   Register

[x]

Rogers Email-to-Text Changes...


thumper is offline thumper
Newbie
Posts: 1 thumper is on a distinguished road
May 24th, 2005, 12:06 PM

Thanks Icarus3000, works great!

Is there any way to default the text area with my cell phone# so when a person responds to the short message it gets sent to my cell phone instead of Rogers la-la land?
Reply With Quote
Wikidd is offline Wikidd
Newbie
Posts: 1 Wikidd is on a distinguished road
July 21st, 2005, 08:54 PM

I was unable to get this to work so I manually recreated the URL and submitted it, I got the following:

"Bad configuration, the query string is not from FORM"

Anyone else run into this? Is this due to the verification Rogers has in place now?

Thanks
Reply With Quote
mimiandi is offline mimiandi
Newbie
Posts: 1 mimiandi is on a distinguished road
September 8th, 2005, 04:45 PM

HI guys,
Firstly, this is a great idea. I managed to set everything up and able to receive forwarded emails on my mobile however, when i receive messages, i get UNKNOWN sender and am only allow to send MMS instead SMS. Is this my config problem??? I assume I should be able to send SMS instead of MMS ?

Thanks
Reply With Quote
silhouette2k is offline silhouette2k
Newbie
Posts: 1 silhouette2k is on a distinguished road
November 25th, 2005, 12:48 PM

I am also unable to get this to Work. i am getting the follwoing error

"Bad configuration, the query string is not from FORM"

Any ideas will be appreciated

Thanks
Reply With Quote
big_raji is offline big_raji
Newbie
Posts: 4 big_raji is on a distinguished road
December 3rd, 2005, 12:45 PM

THanks to brickhost for the great script.

I added a few modifications, which puts the "from" name and the subject in the body of the message. The SMS message will look like this:

------
From: Unknown
From Name (subject) Message
------

If someone knows the variable for "from" on the rogers script, the script can be easily modified.

Heres the code for the modified cron job index.php script. You can modify it the same way for the other index.php script as well.
Code:
<?
include('config.php');

$MC=imap_check($mbox);
$MN=$MC->Nmsgs;
$overview=imap_fetch_overview($mbox,"1:$MN",0);
$size=sizeof($overview);

$header = imap_headerinfo($mbox, 1, 80, 80);
$from = $header->from;
foreach ($from as $id => $object) {
   $fromname = $object->personal;
   $fromaddress = $object->mailbox . "@" . $object->host;
}
   $subject = $header->fetchsubject;

if($size !="0"){
$message = $fromname;
$message .= " (";
$message .= $subject;
$message .= ") ";
$message .=imap_fetchbody($mbox, 1, 1);

$result = mb_strlen($message);
if($result > 160){
$cut = substr($message, 0, 160);
$message = $cut;

}
imap_delete($mbox, 1);
imap_expunge($mbox);

$URL="http://216.129.53.44:8080/cgi-bin/send_sm_rogers.new";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "msisdn=".$smsnum."&text=".$message."&SIZEBOX=".$result);curl_exec ($ch);
curl_close ($ch);

}

imap_close($mbox);


?>
Hopefully that came out ok.

I don't know a thing about PHP, I basically just cut and paste snippets that I could find on the web. If someone with some PHP knowledge can clean it up, or make it nicer, woohoo! Of particular note, the 5 lines of code to define the "$message" could easily be merged into one line if I knew how.
Reply With Quote
big_raji is offline big_raji
Newbie
Posts: 4 big_raji is on a distinguished road
December 9th, 2005, 09:40 AM

So does anyone know how to put a value in the "From" field?

Code:
"msisdn=".$smsnum."&text=".$message."&SIZEBOX=".$result);curl_exec ($ch);
Obviously, 'msisdn' is the cell phone number, 'text' is the message text, and 'SIZEBOX' is the message length. I've tried variables like "from" and "sender" but neither of them work.

Any ideas out there?
Reply With Quote
j62lee is offline j62lee
Newbie
Posts: 1 j62lee is on a distinguished road
February 6th, 2006, 09:20 PM

This script was working fine for me until I decided to tinker with it today... I edited index.php so it would send me messages longer than 160 characters in multiple SMS's... but I left an infinite loop in there by mistake. It sent me about 200 messages before I was able to stop the cron job. I fixed up the code, but then the script stopped working for me. I can still receive txt messages from other sources, but not from this script. I have even tried replacing it with the original index.php file. Does anyone have any ideas?

Here's my code:

Code:
<?
include('config.php');

$MC=imap_check($mbox);
$MN=$MC->Nmsgs;
$overview=imap_fetch_overview($mbox,"1:$MN",0);
$size=sizeof($overview);

if($size !="0")
{
$message=imap_fetchbody($mbox, 1, 1);

imap_delete($mbox, 1);
imap_expunge($mbox);

$result = strlen($message);
$message = str_replace(chr(10), " ", $message);
$iterate = intval($result / 160);
$start = 0;
while ($iterate >= 0)
{
if ($result > 160)
{
$cut = substr($message, $start, $start+160);
}
else
{
$cut = $message;
}
$msgtxt = $cut;
$msglength = strlen($msgtxt);

$URL="http://216.129.53.44:8080/cgi-bin/send_sm_rogers.new";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "msisdn=".$smsnum."&text=".$msgtxt."&SIZEBOX=".$msglength);curl_exec ($ch);
curl_close ($ch);

$iterate = $iterate - 1;
$start = $start + 160;

}

}
imap_close($mbox);
?>
Thanks!
Reply With Quote
ShowKase is offline ShowKase
Newbie
Posts: 1 ShowKase is on a distinguished road
March 11th, 2006, 12:49 PM

hey fellas , dont mean to be a bother but for cats like me who dont have a gaddam clue what any of y'all are talking about - can someone translate all of this into like um ... normal english ? you know ... just ... normal ... words ? i think alot of us reading through these pages are looking for the "Dummies" version of what y'all are talking about ... to no avail ... alot of us need the "press this , then do this , then add this , and then press this" version ... thank ya kindly ...
Reply With Quote
big_raji is offline big_raji
Newbie
Posts: 4 big_raji is on a distinguished road
March 29th, 2006, 05:15 PM

Quoting
hey fellas , dont mean to be a bother but for cats like me who dont have a gaddam clue what any of y'all are talking about - can someone translate all of this into like um ... normal english ? you know ... just ... normal ... words ? i think alot of us reading through these pages are looking for the "Dummies" version of what y'all are talking about ... to no avail ... alot of us need the "press this , then do this , then add this , and then press this" version ... thank ya kindly ...
Well, first thing's first. You need a server (or access to a server) where you can put this PHP file up for public web access. You may need certain rights on the server to enable you to check your e-mail account that you want to associate with your cellular phone.

You then need a way to to access the PHP file over the internet on a timed, regular basis (ie: once a minute). If you are running a scheduled "cron job" on the server, you can use the "wget" command. I don't know of a way to do it with Windows scheduled tasks, but I'm sure there's a program or script you can run to do it.

If you don't have access to a web server to upload this script file (the PHP file) then it's over before you've even started. You MIGHT be able to run a web server on your own PC, and then access the PHP file that way, but it seems like more trouble than it would be worth.
Reply With Quote
jonchew is offline jonchew
Newbie
Posts: 5 jonchew is on a distinguished road
April 18th, 2006, 07:57 PM

hi all.

first off, you won't believe how long i've been looking for something like this! cell notifications would be so much easier, but i like all of you, got a little screwed over by rogers.

can any of you help me? here's the dilemaa.

1. i have my own server with dreamhost, but compiled php does not have IMAP support. no problem, install it. and compile my own with imap (but i dind't install curl and libmcrypt support)
2. when i try and run (after a ONE HOUR install) i get this error

Warning: imap_open(): Couldn't open stream {mail.domain.com:143/imap}INBOX in /home/username/domain.com/cell/config.php on line 25

I HAVE NO IDEA HOW TO FIX IT AND HAVE BEEN TRYING FOR THE LAST FIVE HOURS. (as you can see, i know almost nothign about php)

i've tried everything! removing INBOX, changing my user name and password, etc etc.

Also, can someone explain to me how we're sending the textmessage to our cell phones in the first place. i mean, i always used http://www.rogers.com/english/wireless/sendpcs.html
but it was so annoying since you had to enter in the SECRET CODE.

how are we getting around that exactly? and do i HAVE to use PHP and IMAP to replicate it as well!?
Reply With Quote
amckie is offline amckie
Newbie
Posts: 1 amckie is on a distinguished road
May 10th, 2006, 01:54 AM

The web host for sending messages (216.129.53.44:8080) seems to have been taken offline. Can anyone else confirm that, and (fingers crossed) suggest a working alternative? The only other server I can find right now is the one that requires validation with a code embedded in an image.

Thanks
Reply With Quote
big_raji is offline big_raji
Newbie
Posts: 4 big_raji is on a distinguished road
May 19th, 2006, 10:17 PM

Quoting
The web host for sending messages (216.129.53.44:8080) seems to have been taken offline. Can anyone else confirm that, and (fingers crossed) suggest a working alternative? The only other server I can find right now is the one that requires validation with a code embedded in an image.

Thanks
Damn, I was wondering what happened. That sucks.
Reply With Quote
WakeupCall is offline WakeupCall
Newbie
Posts: 2 WakeupCall is on a distinguished road
Location: Ottawa
May 20th, 2006, 07:48 PM

I have Rogers email alerts coming to my Rogers mobile phone showing the subject line but I don't know how I got it. I don't forward my mail and don't have wireless desktop.

Does anyone know how to get email alerts?
Reply With Quote
quitka is offline quitka
Newbie
Posts: 1 quitka is on a distinguished road
May 26th, 2006, 12:28 PM

Any new workaround so far?
Reply With Quote
jonchew is offline jonchew
Newbie
Posts: 5 jonchew is on a distinguished road
July 1st, 2006, 03:33 AM

i echo this! has anyone found an alternative?

OR just any way to send FREE SMS text messages to ROGERS phones...

right now, i'm using msn mobile alerts to alert me of my e-mails, but it costs five cents per message!!!
Reply With Quote
joeblow99 is offline joeblow99
Newbie
Posts: 1 joeblow99 is on a distinguished road
October 28th, 2006, 12:54 PM

HOW TO:
to have anyone send a text message to your cell send it to:
6042223456@pcs.rogers.com
just replace the first 10 digits with your cell. if you want your email as text messages, setup your email to forward a copy to that email address.
Reply With Quote
jonchew is offline jonchew
Newbie
Posts: 5 jonchew is on a distinguished road
May 29th, 2007, 01:45 PM

Quote:
HOW TO:
to have anyone send a text message to your cell send it to:
6042223456@pcs.rogers.com
just replace the first 10 digits with your cell. if you want your email as text messages, setup your email to forward a copy to that email address.
This actually costs money. you have to pay rogers a $5/month fee to use it! Is there a free way like there used to be by finding out the sms gateway that rogers uses?
Reply With Quote
jonchew is offline jonchew
Newbie
Posts: 5 jonchew is on a distinguished road
September 7th, 2007, 11:18 AM

nobody knows the new rogers SMS gateway hey?
Reply With Quote
Reply
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
About Canadian Content | Contact Us | Archive | Technology | Free Downloads | Top
(C) Copyright Canadian Content Interactive Media. Usage is subject to our Terms of Service at http://www.canadiancontent.net/corp/TOS.html