Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple email script

Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
05-14-2007 17:22
CODE
default {
state_entry() {
llOwnerSay( (string)llGetKey() );
llSetTimerEvent(5.0);
}

timer() {
llGetNextEmail("", "");
}

email(string time, string address, string subj, string message, integer num_left) {
llOwnerSay( "message" );
}
}


Ok I have a really simple script here that used to work (5 months ago). But when I try to email the object, it doesn't ever seem to get the message. Any idea what kinds of things I should be looking for? I've tried two different methods of emailing it.
_____________________
imakehuddles.com/wordpress/
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
05-14-2007 17:26
Is it possible you rerezzed the object, giving it a new UUID, but are still mailing the old UUID?
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
05-14-2007 17:39
No, I'm pretty sure that's not the problem. That's why the first step in the script is saying the UUID.

Well, i tried the script in the wiki which is pretty similar:

CODE
default {
state_entry() {
llEmail((string)llGetKey() + "@lsl.secondlife.com", "Test!", "This is a test message."); // Send email to self.

llSetTimerEvent(2.5); // Poll for emails. (Yes, that is a retarded way on an event-based system!)
}

timer() {
llGetNextEmail("", ""); // Check for email with any sender address and subject.
}

email(string time, string address, string subj, string message, integer num_left) {
llSay(0, "You got mail! " + (string)num_left + " more mails.");
llSay(0, llList2CSV([time, address, subj, message]));
if (num_left == 0) llSetTimerEvent(0.0); // Stop timer when there's no more email.
}
}


That works... at least an object can send an email to itself. But emails from outside sources like gmail or a php script no longer work for me. Did they deprecate this functionality?
_____________________
imakehuddles.com/wordpress/
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
05-14-2007 19:08
I've noticed on several occasions that RL to SL emails can be delayed by as much as 12 hours...

It's rarely that long, usually it's fairly quick, but it doesn't seem to be nearly as reliable as I'd like. And at least one update has borked it completely.

.
_____________________
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
05-14-2007 21:23
From: RobbyRacoon Olmstead
I've noticed on several occasions that RL to SL emails can be delayed by as much as 12 hours...

It's rarely that long, usually it's fairly quick, but it doesn't seem to be nearly as reliable as I'd like. And at least one update has borked it completely.

.

But they still are supposed to work?
_____________________
imakehuddles.com/wordpress/
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
05-14-2007 21:45
Weird. It seems to be working now. So perhaps there are times of the day when emails from outside sources don't get through perhaps.
_____________________
imakehuddles.com/wordpress/
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
05-14-2007 21:47
In the mornings...e-mails generally get through rather well...

...in the evenings...I've found e-mails delayed for hours.

...seems that things have gotten better recently...but the trend still exists to a small extent.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.