Sends an email to address with subject and message.
The entire message (including the address, subject and other miscellaneous fields) can't be longer than 4096 bytes combined.
| • string | address | |||
| • string | subject | |||
| • string | message |
Specification
The message is prefixed with information about the prim sending the email.
| Template | Example |
|---|---|
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. |
Examples
string emailAddress = "somebody@example.com"; string emailHeader = "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); llEmail(emailAddress, emailHeader, "I was touched by: '" + name + "' (" + (string)id + ")."); // llSay(PUBLIC_CHANNEL, "Email has been sent."); }
No comments:
Post a Comment