Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

why is my llEmail not working?

Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
01-11-2007 02:45
hi...

i wrote very simple scripts for communication via llEmail. One sender and one receiver. But it is not working. object id's are right..checked it twice....


RECEIVER:
CODE

default {
state_entry() {

llSetTimerEvent(2.5);
}



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

email(string time, string address, string subj, string message, integer num_left) {

if (message == "RAISE")
llSay(0,(string)message);
}
}



SENDER:
CODE


default
{
state_entry()
{

}

touch_start(integer toucher)
{
llEmail("9d530df3-cb52-61s3-a575-875678740h34@lsl.secondlife.com", "Test", "RAISE");
}

}



thx so much....

PS: i made this id up for this thread ....(but in my scripts it is fine and correct)
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-11-2007 02:54
Check the wikki entry for llEmail
Your message will never just be RAISE as SL appends a 4 line positional header to it.
Change it to use the Subject instead

CODE

email(string time, string address, string subj, string message, integer num_left)
{

if (subj == "RAISE")
llSay(0,(string)message);
}


And in Sender

CODE

touch_start(integer toucher)
{
llEmail("9d530df3-cb52-61s3-a575-875678740h34@lsl.secondlife.com", "RAISE", "RAISE");
}
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
01-11-2007 03:21
AWESOME! WORKS! THX newgate....