Jump to content

LlGetNextEmail

From OSgrid Wiki
Revision as of 22:38, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "==Function: llGetNextEmail( string address, string subject );== Get the next waiting email with appropriate sender address and/or subject (if blank they are ignored) <br> •...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: llGetNextEmail( string address, string subject );

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

Examples

<source lang="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);
     }

} </source>


See Also
Events
• email
Functions