Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

||~~|| Email ||~~||

Daemon Speculaas
Gate Keeper
Join date: 2 Oct 2005
Posts: 14
03-13-2006 17:37
i dont understand how emailing info works... can someone explain in detail how i would make say and email send a command and when that is heard act upon it?
_____________________
Time dose not pass for the imortals.....
CrazeeTastee Gupte
Registered User
Join date: 13 Nov 2005
Posts: 13
03-13-2006 18:52
From: Daemon Speculaas
i dont understand how emailing info works... can someone explain in detail how i would make say and email send a command and when that is heard act upon it?


What exactly do you mean by "make say and email send a command?" I'm not sure I understand what you're asking.
Daemon Speculaas
Gate Keeper
Join date: 2 Oct 2005
Posts: 14
03-13-2006 18:59
sorry i mean::

how would i send and email :: "pie" ::

and when it gets that message it would say something like :: " Pie is good!!!" ::
_____________________
Time dose not pass for the imortals.....
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
03-13-2006 20:55
Do you want to send an email to an object or send an email from an object?

To send an email from an object use this: llEmail

To send an email to an object you need to know it's key and use this function: llGetNextEmail

and this event: email
_____________________
imakehuddles.com/wordpress/
Zodiakos Absolute
With a a dash of lemon.
Join date: 6 Jun 2005
Posts: 282
03-13-2006 23:34
Put this in the object to receive the email.
CODE

default
{
state_entry()
{
llSay(0, "The address to email me at would be: " + llGetKey() + "@lsl.secondlife.com");
llSetTimerEvent(3.0);
}

timer()
{
llGetNextEmail();
}

email(string time, string address, string subj, string message, integer num_left)
{
// This next line strips the message header SL sends.
message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);
if(message=="pie") llSay(0, "pie is good!")
if(num_left) llGetNextEmail();
}
}


Put this in the object that will send the email:
CODE

// replace with the key of the object you want to send email to.
string address = "908723498712430987@lsl.secondlife.com";

default
{
state_entry()
{
}

touch_start(integer numdetected)
{
llEmail(address, "none", "pie");
}
}


I apologize if there is a typo in there. :D
Daemon Speculaas
Gate Keeper
Join date: 2 Oct 2005
Posts: 14
Thanks!
03-14-2006 07:02
Yay, other than the typos in the first one (like you sayed) thats what i needed now i can use emails! yay yay yay yay yay yay yay yay yay yay yay yay >.<
_____________________
Time dose not pass for the imortals.....
Zodiakos Absolute
With a a dash of lemon.
Join date: 6 Jun 2005
Posts: 282
03-14-2006 16:51
I'm glad I could be of help. =D