Get the next queued email that comes from address, with specified subject.

Syntax

void llGetNextEmail( string address, string subject );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string address
Sender's mail address
string subject
Mail subject

If address or subject an empty string, then that parameter will be treated as a wildcard.

Specification

The email event will be triggered only if address and subject match

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

Events

Functions