PageCommandsServicesSendMail Method
|
Sends an email out, using the Ingeniux CMS site mail settings. The email message will be plain text.
Namespace: IngeniuxCMServiceAssembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntaxpublic 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 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
XHRServiceResponseGenericStringHard-coded response in user interface language indicating mail has been sent. If any error occurred, error status will be returned.
Example
Sample JSON return
{
"code": 0,
"error": null,
"message": "Email message sent."
}
{
"code": 0,
"error": null,
"message": "电邮发送成功。"
}
See Also