In this post I'll send an email out from the Second Life world and into the real world, — my gmail inbox.
One line
All you need to do to send an email is use the llEmail
method. The method takes 3 string
arguments: the email address, the subject line, and the message body.
It's an extremely convenient and simple arrangement. Normally, sending an email from a program would require the complex setting up of SMTP servers, authentication, and so on. In Second Life, you it's reduced to a single line.
touch_start(integer total_number) {
llEmail("EMAILADDR", "Email Subject", "Message body" );
llSay(0, "I sent you email");
}
Email from Second Life in "real life". |
No comments:
Post a Comment