Click or drag to resize

PageCommandsServicesSendMail Method


Sends an email out, using the Ingeniux CMS site mail settings. The email message will be plain text.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<string> SendMail(
	string to,
	string cc,
	string bcc,
	string subject,
	string body
)

Parameters

to
Type: SystemString
Email recipient addresses
cc
Type: SystemString
Email Carbon Copy addresses
bcc
Type: SystemString
Email Blind Carbon Copy addresses
subject
Type: SystemString
Subject of Email
body
Type: SystemString
Body of Email

Return Value

Type: XHRServiceResponseGenericString

Hard-coded response in user interface language indicating mail has been sent. If any error occurred, error status will be returned.

Examples
Sample JSON return
JavaScript
//UI language is en-us:

{
    "code": 0,
    "error": null,
    "message": "Email message sent."
}

//UI language is "zh-cn":

{
    "code": 0,
    "error": null,
    "message": "电邮发送成功。"
}
See Also