Simple

From Second Life Wiki
Jump to navigation Jump to search

Simple E-mail sender Via Second life

With this simple script it´s possible send a e-mail from Second Life.

To send an e-mail, you only need put this script in object and type in chat: /1 to write e-mail adress. /2 to Write a Subject. /3 to write your message.

This is just an example, you must change what you want! <lsl>

default {

  state_entry()
  {
      llListen( 1, "", NULL_KEY, "" ); // differents chats for differents option (adress,subject, body)
      llListen( 2, "", NULL_KEY, "" );
      llListen( 3, "", NULL_KEY, "" );
  }
  touch_start(integer total_number)
  {
      llOwnerSay("/1 to adress!"); 
      llOwnerSay("/2 to subject!");
      llOwnerSay("/3 to message!");   
  }
  
   listen( integer channel, string name, key id, string message )
   {
      string emailadress;
      string Subject;
       string Body;
       
      if(channel ==1)
       {
          emailadress = message;
         
           
      }
      if(channel ==2)
       {
           Subject = message;
         
           
       }
       if(channel ==3)
       {
           Body = message;
           
       }
       [llEmail][1](emailadress,Subject,Body); // Send the e-mail.
       
   }

}

</lsl>

Really simple.