Don't click here unless you want to be banned.

LSL Wiki : llGetNextEmail

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org
llGetNextEmail(string address, string subject)

This function requests the next waiting email with sender address and subject. You can leave these empty to match any address and/or subject in the queue.

If a matching email is found in the queue, llGetNextEmail will remove it from the queue and trigger an email() event in one to three seconds. If no matching email is found, this function has no effect. This function will trigger the email() event in all scripts in the prim.

The queue seems to hold 101 emails. Any emails sent after that are bounced.

The address for sending email to an object is <objectkey>@lsl.secondlife.com. So for example, an object which returned "9dd0db80-d7f0-cf7d-699d-5afb6eed0640" on a call to llGetKey would be reachable as 9dd0db80-d7f0-cf7d-699d-5afb6eed0640@lsl.secondlife.com.

This will allow you to receive email from within a script from the outside world. Works by checking a global list of pending incoming emails, and returning the next matching one if there are any. This mail spool persists across script resets.

llGetNextEmail differs from llListen in that it must be called every time you want to check your mail, you can't just set it and have incoming emails trigger the email() event. If you want to check for email at regular intervals, use a timer.

Note: When you teleport, your attachments are derezzed and re-rezzed at the new location. This means that they will all receive new keys (see llGetKey) and that emailing scripts in attachments is therefore a bit tricky. This is no longer true; I don't know when it changed. Detaching and re-attaching does, however, result in a new key. -SiannBeck

To send an email, use llEmail.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Communications
There are 5 comments on this page. [Display comments/form]