Отправка данных на почту пользователю Системы
URL: components/Services/APIService.asmx
Метод: SendMail
Передаваемые параметры
| Параметр | Описание |
|---|---|
ASPNETSessionId | Идентификатор сессии |
emails | Адрес(а) |
subject | Тема письма |
body | Тело письма |
documents | Массив данных документов DocumentsWrapper, который содержит: • DocumentName - название файла-вложения вместе с расширением; • DocumentBody - файл в кодировке base64. |
DocumentContentType | Тип загружаемого файла |
<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:SendMail> <tem:ASPNETSessionId>string</tem:ASPNETSessionId> <tem:emails> <tem:string>string</tem:string> </tem:emails> <tem:subject>string</tem:subject> <tem:body>string</tem:body> <tem:documents> <tem:DocumentsWrapper> <tem:DocumentName>string</tem:DocumentName> <tem:DocumentBody>string</tem:DocumentBody> <tem:DocumentContentType>string</tem:DocumentContentType> </tem:DocumentsWrapper> </tem:documents> </tem:SendMail> </soapenv:Body> </soapenv:Envelope>
Возвращаемый параметр
| Параметр | Описание |
|---|---|
SendMailResponse | Результат выполнения |
<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SendMailResponse xmlns="http://tempuri.org/"/> </s:Body> </s:Envelope>