paraworld.actionfeed.sendEmail

Description

使用系统服务邮箱发送电子邮件(只可给当前登录用户的好友发送邮件)

Parameters

Required Name TypeSorted ascending Description
optional isBodyHtml boolean 邮件正文是否为HTML格式。默认值为true
optional format int 返回的数据格式(0:XML 1:JSON),默认值为0
required sessionKey string 用户凭证
required to string 以英文逗号(,)分隔的用户ID集合
required title string 邮件标题
required body string 邮件正文

Example Return XML

<msg xmlns="">
        <isSuccess type="boolean">True</isSuccess>
</msg>

Example Return JSON

{"isSuccess":"true"}

Error Codes

当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录

Test Cases

case 1

Input:

{

        ["to"]="0a3b1121-b72f-4100-9943-bf0bacf7d045,a354ea8f-6ef6-4db7-ba6a-c6df2d47abb8",

        ["sessionKey"]="f770dcfe-cd18-4e05-9d2f-6eb1f1859864",

        ["isBodyHtml"]="true",

        ["title"]="Hello World",

        ["body"]="this is a test email",

}

Result:

{

       ["isSuccess"]=true,

}
Topic revision: r4 - 2008-12-06 - CaoYF
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback