API
Component

Email ($UI/comp/email-pc/components/email/email)

使用范围:UI2

Contents

component Email ($UI/comp/email-pc/components/email/email) extends ViewComponent

Constructor Top

  Email ()
  Email ( options)

Methods Top

String send (SendParam options)

Operations Top

sendEmail (SendParam options)

Events Top

void onError (ErrorEvent event)
void onSuccess (SuccessEvent event)

Constructor details Top

public Email ()

public Email ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

Methods Detail Top

public String send (SendParam options)

发送邮件

Parameters

SendParam options

参数

Return Value

String

状态码

Operations Detail Top

public sendEmail (SendParam options)

发送邮件

Parameters

SendParam options

参数

Events Detail Top

public void onError (ErrorEvent event)

请求失败

Parameters

ErrorEvent event


结构如下:

{ textStatus : 请求状态码, source : 组件自身 }

Return Value

void

public void onSuccess (SuccessEvent event)

请求成功

Parameters

SuccessEvent event


结构如下:

{ resultData : 返回数据, "statusCode" : 请求返回状态码 "header" : 请求返回头 source : 组件自身 }

Return Value

void