Get the next queued email that comes from address, with specified subject.
void llGetNextEmail( string address, string subject );
Forced delay: 0.0 seconds. Energy: 10.0.
If address or subject an empty string, then that parameter will be treated as a wildcard.
The email event will be triggered only if address and subject match
default
{
state_entry()
{
llOwnerSay("My email address is: " + (string)llGetKey() + "@lsl.secondlife.com");
// check every half minute
llSetTimerEvent(30.0);
}
timer()
{
//Check for emails
llGetNextEmail("", "");
}
email(string time, string address, string subj, string message, integer num_left)
{
llOwnerSay("I got an email: " + subj + "\n" + message);
}
}