LlEmail
De DigiWiki.
string email_address = "somebody@example.com"; // who will receive the messages default { state_entry() { //Send an email to a normal email account llEmail( email_address, "Look it's an email subject line!", "Testing 1 2 3" ); } touch_start( integer num_detected ) { integer i = 0; // Send another email, telling who touched the prim. do llEmail( email_address, "No touching!", "I was defiled by: " + llDetectedName(i) + "\nKey: " + (string) llDetectedKey(i) ); while(++i < num_detected); } }
Useful Snippets
email( string time, string address, string subj, string message, integer num_left ) { if(llGetSubString(address, -19, -1) == "@lsl.secondlife.com")//trim the header message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1); }