Difference between revisions of "LlGetNextEmail"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 4: Line 4:
|func=llGetNextEmail|p1_type=string|p1_name=address|p2_type=string|p2_name=subject
|func=llGetNextEmail|p1_type=string|p1_name=address|p2_type=string|p2_name=subject
|func_footnote
|func_footnote
|func_desc=Get the next waiting {{LSLG|email}} with appropriate '''address''' and/or '''subject''' (if {{HoverText|blank|an empty string: {{String}}}} they are ignored)
|func_desc=Get the next waiting {{LSLG|email}} with appropriate '''sender address''' and/or '''subject''' (if {{HoverText|blank|an empty string: {{String}}}} they are ignored)
|return_text
|return_text
|spec
|spec

Revision as of 05:37, 30 August 2008

Summary

Function: llGetNextEmail( string address, string subject );
0.0 Forced Delay
10.0 Energy

Get the next waiting email with appropriate sender address and/or subject (if blank they are ignored)

• string address
• string subject

Examples

<lsl> default {

   state_entry() {
       llSetTimerEvent(1); //Don't go much lower than this...
   }
   
   timer() {
       llGetNextEmail("", ""); //Check for emails
   }
   
   email(string time, string address, string subj, string message, integer num_left) {
    
        llOwnerSay("I got an email: " + subj + "\n" + message);
      
   }

}

</lsl>

See Also

Events

Deep Notes

Signature

function void llGetNextEmail( string address, string subject );