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.3.169
Syntax public XHRServiceResponseGeneric<string> SendMail(
string to,
string cc,
string bcc,
string subject,
string body
)
Public Function SendMail (
to As String,
cc As String,
bcc As String,
subject As String,
body As String
) As XHRServiceResponseGeneric(Of String)
public:
virtual XHRServiceResponseGeneric<String^>^ SendMail(
String^ to,
String^ cc,
String^ bcc,
String^ subject,
String^ body
) sealed
abstract SendMail :
to : string *
cc : string *
bcc : string *
subject : string *
body : string -> XHRServiceResponseGeneric<string>
override SendMail :
to : string *
cc : string *
bcc : string *
subject : string *
body : string -> XHRServiceResponseGeneric<string>
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:
XHRServiceResponseGenericStringHard-coded response in user interface language indicating mail has been sent. If any error occurred, error status will be returned.
Examples
Sample JSON return
{
"code": 0,
"error": null,
"message": "Email message sent."
}
{
"code": 0,
"error": null,
"message": "电邮发送成功。"
}
See Also