Sends an email to the owner (selected by target) of an object with subject and message.

Syntax

void llTargetedEmail( integer target, string subject, string message );

Forced delay: 20.0 seconds. Energy: 10.0.

Parameters

integer target
string subject
string message

The entire message (including the address, subject and other miscellaneous fields) can't be longer than 4096 bytes combined.

Specification

The target parameter selects which agent the email is sent to

ConstantValSelect the email destination
TARGETED_EMAIL_OBJECT_OWNER2send email to the owner of the current object

The message is prefixed with information about the prim sending the email.

TemplateExample
Object-Name: *prim*
Region: *simname* (*simpos.x*, *simpos.y*)
Local-Position: (*primpos.x*, *primpos.y*, *primpos.z*)

*message*
Object-Name: Object
Region: Gibson (254976, 256000)
Local-Position: (117, 129, 50)

The real message starts here.

Caveats

Examples

string emailSubject = "Someone touched me!";

default
{
    touch_start(integer num_detected)
    {
        // llSay(PUBLIC_CHANNEL, "Sending eMail report now, this will take ~20 seconds.");

        key id = llDetectedKey(0);
        string name = llDetectedName(0);

        llTargetedEmail(TARGETED_EMAIL_OBJECT_OWNER, emailSubject,
            "I was touched by: '" + name + "' (" + (string)id + ").");

        // llSay(PUBLIC_CHANNEL, "Email has been sent.");
    }
}

See also

Functions