LlGetNextEmail
Looking for the current API? Open the llGetNextEmail reference →
Wiki description
Get the next queued email that comes from address, with specified subject.
Function notes
If address or subject an empty string, then that parameter will be treated as a wildcard.
Specification
- Neither parameter is case sensitive.
- If a parameter is an empty string, then that parameter will be treated as a wildcard, matches anything.
- If both parameters are empty strings then the first email in the queue will be matched.
- The email queue is FIFO.
Examples
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);
}
}See also: functions
See also: events
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.