
|
View Full Version : Contact scripts for your website?
The Laughing Cow 08-03-2002, 01:32 PM Hi,
I was wondering if anyone know where I can find any of the following. I have looked about the web and the respective sites but can't seem to find them. I know ICQ used to do one but here we go...
Some sort of form that you can add to your website so that they can fill it in and it sends you an AIM message. The same with one for ICQ.
Also, is there anything like the above that will send you an SMS to your cell phone? Ads don't matter that much.
I can't seem to find any but I do remember ICQ having something I thought.
Thanks!
Terry
The Prohacker 08-03-2002, 02:03 PM Usually you can receive SMS messages via email, 9185826894444@yourprovider.net....
You'd have to check on that, but let me look for the html for an ICQ contact form...
michaeln 08-03-2002, 02:04 PM ICQ used to have the code on their webpage. Don't know if it is still there....
Doing a message to your cell is easy.. .
Find out what the email address to your cell or pager is and have the script email the form info to that email address.
Regards,
Michael
The Laughing Cow 08-03-2002, 02:05 PM Well i'm in the UK and don't know of any phone providers who allow email > sms :/
michaeln 08-03-2002, 02:07 PM What is the web address to your cell phone company?
The Prohacker 08-03-2002, 02:08 PM <a href="http://wwp.icq.com/666666#pager" target="_blank"><img src="http://wwp.icq.com/scripts/online.dll?icq=666666&img=5" alt="YourName's ICQ status" border="0"></a>
The Laughing Cow 08-03-2002, 02:16 PM http://o2.co.uk
used to be http://btcellent.co.uk then http://genie.co.uk fyi.
Thanks everyone so far,
Trying that Prohacker thx
michaeln 08-03-2002, 03:48 PM Go here:
http://www.o2.co.uk/0,,900,00.html
Click on Email to Mobile on the left menu under My Message Pad...
Oh, you will need to be logged in to do this. If you have not set a username and password yet it will give you a chance to do that..
When you set up your username and password it will give you an email address...
After you have your username and password login then do the first thing I told you. It will pop up a window allowing you to setup email to phone support for your cell phone... Fill in all of the appropriate fields...
From that point on the first 160 characters sent to the email address they provided you will go to your cell phone...
Regards,
Michael
The Laughing Cow 08-03-2002, 04:04 PM Thanks very much Michael, I have given it a try, I had nothing but trouble with the old Genie (one of the O2 brands) but this looks more promising.
Cheers
michaeln 08-03-2002, 04:22 PM No problem....
Let me know how that works out for you....
Regards,
Michael
The Laughing Cow 08-03-2002, 05:41 PM I tried it but like before the emails didn't arrive at my phone even though i put in the confirmation code :confused:
michaeln 08-03-2002, 06:21 PM That is your cell phone company right?
Also did you remember to set up that one form for the email to phone.....
Regards,
Michael
The Laughing Cow 08-03-2002, 06:26 PM Yes, and Yes to both. I had this problem with them before :/
michaeln 08-03-2002, 08:11 PM Very strange. You might should call them and see what they say....
This is what I did.
a) Visited my cell company website.
b) Checked their sms message form.
c) Hacked it :)
And now I can send SMS from anywhere. I wrote a php script which opens a socket to their website, sends form data via "post". And bingo :cool:
Just received an SMS from one of my client. :stickout
RackNine 08-03-2002, 08:27 PM ICQ Web Pager Interface, I'll provide the SMS gateway in next message
<?
/*
Class: icq_pager (icq_pager.php)
Description:
Sends message to user's ICQ window
Functions:
--- constructor ---
icq_pager($icq = '', $subject = '', $message = '', $from_name = '', $from_email = '')
Creates an instance of the icq_pager class. ICQ number,
message subject, message, and sender info may be included in
constructor.
--- public functions ---
send($msg = '')
Sends message to phone/pager. If $msg is set the default
message is changed to $msg prior to transmission.
Variables:
--- public variables ---
string icq
ICQ number to send page to
string subject
Subject of message
string message
Message to be sent.
string from_name
string from_email
Contact information of sender
*/
class icq_pager {
var $icq;
var $message;
var $subject;
var $from_name;
var $from_email;
function icq_pager($icq = '', $subject = '', $message = '', $from_name = '', $from_email = '') {
$this->icq = $icq;
$this->subject = $subject;
$this->message = $message;
$this->from_name = $from_name;
$this->from_email = $from_email;
}
function send($message = '') {
if ($message)
$this->message = $message;
function send($message = '') {
if ($message)
$this->message = $message;
mail($this->icq.'@pager.icq.com', $this->subject, $this->message
,'To: <' . $this->icq.'@pager.icq.com' . ">\r\n"
.'From: "' . $this->from_name . '" <' . $this->from_email . ">\r\n"
.'Reply-To: "' . $this->from_name . '" <' . $this->from_email . ">"
);
}
}
?>
Please provide credit where credit is due :)
-Matt
RackNine 08-03-2002, 08:29 PM SMS interface for our provider TELUS. Uses both their web and email gateways. Should provide a good start for you:
<?
/*
Class: telus_text_message (telus_text_message.php)
Required: http_post
Description:
Allows for direct communication to a user's cellular phone
if they utilize a telus phone or text-message capable pager.
Functions:
--- constructor ---
telus_text_message($code = '780', $num = '', $msg = '')
Creates an instance of the telus message class. Area
code, phone number, and message may be included in
constructor.
--- public functions ---
send($msg = '')
Sends message to phone/pager. If $msg is set the default
message is changed to $msg prior to transmission.
send_email($msg = '')
Sends message to phone/pager using email method.
If $msg is set the default message is changed to
$msg prior to transmission.
Variables:
--- public variables ---
string area_code
Area code message will be sent to
string phone_number
Phone number message will be sent to
string message
Message to be sent.
*/
if(!class_exists('http_post'))
include($absoluteDir . "/library/http_post.php");
class telus_text_message {
var $area_code;
var $phone_number;
var $message;
function telus_text_message($code = '780', $num = '', $msg = '') {
$this->area_code = $code;
$this->phone_number = $num;
$this->message = $msg;
}
function send($msg = '') {
if ($msg)
$this->message = $msg;
$hp = new http_post();
$hp->set_action('http://msg.telus.com:80/msg/HTTPPostExtMgr');
$hp->set_element('CODE', $this->area_code);
$hp->set_element('NUM', $this->phone_number);
$hp->set_element('MESSAGE', $this->message);
return $hp->send();
}
function send_email($msg = '') {
if ($msg)
$this->message = $msg;
mail($this->area_code.$this->phone_number.'@msg.telus.com', '', $this->message);
}
}
?>
-Matt
The Laughing Cow 08-05-2002, 06:52 AM Thanks Matt, some useful scripts there, I hope to make use of the pager one sometime, and of course creadit will be there :)
|