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.6.492
Syntax
public XHRServiceResponseGeneric<string> SendMail(
	string to,
	string cc,
	string bcc,
	string subject,
	string body
)

Parameters

to  String
Email recipient addresses
cc  String
Email Carbon Copy addresses
bcc  String
Email Blind Carbon Copy addresses
subject  String
Subject of Email
body  String
Body of Email

Return Value

XHRServiceResponseGenericString

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

Example
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