Log in

View Full Version : Email/Text Alerts



lvbot
03-12-2012, 04:34 AM
I was wondering if there was any way to set Simba so that I can receive a text message/email alert whenever I get a random event (that can't be solved) or a script stops running.

How would I set this up?

Any help is appreciated!

Sex
03-12-2012, 04:36 AM
This is possible. Write a php script and hook the onRandom procedure or whatever to access the page :).

Brotein
03-12-2012, 05:25 AM
This is actually a pretty good idea. I can work on writing the php code after I finish up my agility script. If I get it working fine, I'll post a tutorial about it.

Sex
03-12-2012, 05:39 AM
This is actually a pretty good idea. I can work on writing the php code after I finish up my agility script. If I get it working fine, I'll post a tutorial about it.

Come on, it's like 10 lines :p.

Caotom
03-12-2012, 06:35 AM
Come on, it's like 10 lines :p.

You'd be surprised how difficult some people would find working with those 10 lines without a tutorial...

~Caotom

Brotein
03-12-2012, 07:24 PM
Well I don't know if you still need to do this for the php, but the last time I wrote a mailer, you needed separate cases for every carrier like 1235551234@vtext.com, to fill in the email address for your phone for the SMS.

P1nky
03-12-2012, 07:39 PM
Come on, it's like 10 lines :p.

Can you write one for the community, I been waiting for something like this.

-Cheers

Spiker
03-14-2012, 08:38 PM
Can you write one for the community, I been waiting for something like this.

-Cheers

I would also like this. :) Would totally +Rep :)

jakeyboy29
03-14-2012, 08:53 PM
yeah sure

SendTextSms to; '077XXXXXXXXX'

easy as that

Justin
03-14-2012, 09:16 PM
<?php
$auto = "\r\n\r\n\r\nThis message was sent from a php script.";

$to = $_GET['to'];
$subject = $_GET['subject'];
$body = $_GET['body'] . $auto ;
$headers = 'From: whatever@whoever.com' . "\r\n" .
'Reply-To: whatever@whoever.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>

x[Warrior]x3500
03-14-2012, 09:22 PM
http://villavu.com/forum/showthread.php?t=64833

lvbot
03-15-2012, 02:38 PM
Thanks for the responses everyone, with notifications I won't have to worry about accounts getting stuck anymore. :)

shstiger2009
03-15-2012, 02:42 PM
ustin;960580']

<?php
$auto = "\r\n\r\n\r\nThis message was sent from a php script.";

$to = $_GET['to'];
$subject = $_GET['subject'];
$body = $_GET['body'] . $auto ;
$headers = 'From: whatever@whoever.com' . "\r\n" .
'Reply-To: whatever@whoever.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>


Sorry for being a noob, but where would we put this into a script?

Sex
03-15-2012, 03:04 PM
You put that on a website that has php with mail capability and then you can do something like this in Simba:
GetPage('http://www.example.com/mail.php?to=1234567890@txt.att.net&subject=Test&body=Hi');
Of course you should write a function to do this, but you get the point.