|
Andreas Frankfurter
Registered User
Join date: 15 Jul 2006
Posts: 18
|
08-19-2006 18:53
I m trying to send an Email Receipt to customers and it doesn t seem to work i m trying it with this code:
string subject = "test"; string message = " 1 2 3 ";
default { state_entry() { } touch_start(integer total_number) { llEmail((string)llDetectedKey(0) + "@lsl.secondlife.com", subject, message); } }
Thanks in advance
|
|
Dragon Eccleston
Registered User
Join date: 25 Dec 2005
Posts: 42
|
08-19-2006 20:25
You can't email agents, only objects.
|
|
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
|
08-22-2006 01:12
Instead of emailing the receipt to your customers, use llInstantMessage() instead. If they have the option for offline IMs to go to email enabled, your receipts will get to them even if they're offline. Good Luck! 
_____________________
------------------ The ShelterThe Shelter is a non-profit recreation center for new residents, and supporters of new residents. Our goal is to provide a positive & supportive social environment for those looking for one in our overwhelming world.
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
08-22-2006 06:40
There is a sort of funny (odd?) thing going on with email to avatars. While you can send email to "key@lsl.secondlife.com", "key" is not the avatar's key. It is some sort of temporary key that works for a day or so (can't remember the specifics). For this reason, you can reply via email if you receive an IM in your email. But you cannot out-of-the-blue email anyone in SL just by knowing their key.
The out-of-SL-to-inside-SL message systems work by wending email to a known OBJECT with a particular key and having it convert the email into an IM and sending it on to the appropriate avatar for whom it holds the key.
Hope that made a little bit of sense, Baron H.
|
|
Jason Foo
Old Timer
Join date: 6 Feb 2004
Posts: 105
|
08-22-2006 10:00
From: Travis Lambert Instead of emailing the receipt to your customers, use llInstantMessage() instead. If they have the option for offline IMs to go to email enabled, your receipts will get to them even if they're offline. Good Luck!  I second this notion.
_____________________
If my doctor told me I had only six minutes to live, I wouldn't brood. I'd type a little faster.
|