Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llEmail, what can it send?

Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
10-31-2008 09:51
Ok, I've been messing around with the llEmail func, I have sent me some stuff. I wanted to know if it's possible to send a list through it.

Ex.
list c;
intiger i;
string email_address = person@mail;

touch_start(integer total_number)
{
for(i=0; i < 10; ++i)
{
c += i;
}
llEmail (email_address, "topic", c);
}

I do know it doesn't let me do this because c is a list not a string. I have tried it with out a list and putting the llEmail in the for loop, but it sends me a seperate email for every individual number. How can I get the whole list in one email? halp ma.
Scott Savira
Not Scott Saliva
Join date: 10 Aug 2008
Posts: 357
10-31-2008 09:59
It depends how you want the list formatted. I would suggest you try llList2CSV and send the list to the email as a comma seperated string.

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llList2CSV
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
10-31-2008 19:25
Use llDumpList2String to convert the list to a string that separates the list items with a separator of your choosing. At the receiving end, use llParseList2String to convert it back.
Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
11-01-2008 09:41
Thanks, that did it. I was also wondering if the samething could be done to send it to the owner in a notecard?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
11-01-2008 09:47
From: Zeta Eizenstark
Thanks, that did it. I was also wondering if the samething could be done to send it to the owner in a notecard?

If you have manually created a notecard ahead of time and would like the script to deliver it to your avatar at some point in time, that can be done with llGiveInventory(). Otherwise you are out of luck because notecards cannot be generated in any automated way supported by the basic SL simulator code and viewer. You COULD create a custom viewer/bot to create notecards for you, but that's an ugly can of worms most people don't want to open.
Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
11-01-2008 10:11
0.0
thanks, I will keep that can closed good sir!
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
11-01-2008 10:24
No one caught my error. It's llParseString2List. Not llParseList2String.
Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
11-01-2008 10:50
Ok, it's not sending me the email anymore. I don't know if this matters but when it was working I was at my work pc yesturday and when I tried it at my home pc today it doesn't send me the emails.
Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
11-01-2008 12:54
nvm, fixed.