LlEmail/ja - Second Life Wiki

LlEmail/ja

From Second Life Wiki

Jump to: navigation, search

関数: llEmail( string address, string subject, string message );

subjectmessageaddressにemailで送ります。

• string address
• string subject
• string message

仕様

messageはプリムが送信するemailの情報の頭に置かれます。

Template Example
Object-Name: *prim*
Region: *simname* (*simpos.x*, *simpos.y*)
Local-Position: (*primpos.x*, *primpos.y*, *primpos.z*)

*message*
Object-Name: Object
Region: Gibson (254976, 256000)
Local-Position: (117, 129, 50)

実際のメッセージはここから始まります。

警告

  • この関数は20.0秒間、スクリプトを停止します。
  • オブジェクトが一定時間に送信できるemailメッセージの数には限界があります。

 
string email = "";
 
default
{
    state_entry() 
    {
        if(email == "")
            email = (string)llGetKey()+"@lsl.secondlife.com";
 
        //Send an email to a normal email account
        llEmail( email, "Look it's an email subject line!", "Testing 1 2 3" );
    }
 
    touch_start( integer num_detected )
    {
        //Send an email to the person who touched the prim
        llEmail( email, "No touching!", "I was defiled by: " + llDetectedName(0)+"\nKey: "+(string)llDetectedKey(0) );
    }
}
 

部分的な利用

 
email( string time, string address, string subj, string message, integer num_left )
{
    if(llGetSubString(address, -19, -1) == "@lsl.secondlife.com")//trim the header
        message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);
}
 

ノート

  • この関数上での長い遅延の理由は、しばしばlink messageによって作動する他のスクリプトから呼ばれるためです。
  • SecondLifeでemailを送信している場合、アドレスは[key]@lsl.secondlife.comとなることを覚えてください。
    • その意味は、llGetKeyが"a2e76fcd-9360-4f6d-a924-000000000003"というkeyを返す場合に、emailアドレスは"a2e76fcd-9360-4f6d-a924-000000000003@lsl.secondlife.com"になる、ということです。

関連項目

イベント

関数

テスト

  • llEmail

デザインドキュメントの特性

(none)

関数仕様

(none)

テストスクリプト

内部テスト

将来的な改善の議論

(none)

他の特性との関係

特性の一覧は特性の変更及び何故そうするのかをテストをされるために必要です。

IMをemailに - verify IM -> email の作業間検証

ポストカード - ポストカードはmail以外を使いますか?


ユーザガイド

LSLwiki.netのllEmail