POST api/Print/Mail?user={user}
envoyer un email
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| user |
user saga pour utiliser un serveur smtp spécificque |
string |
Default value is |
Body Parameters
mail à envoyer
Mail| Name | Description | Type | Additional information |
|---|---|---|---|
| sMessage | string |
None. |
|
| sTitle | string |
None. |
|
| sToAddress | Collection of string |
None. |
|
| sCCAddress | Collection of string |
None. |
|
| sBCCAddress | Collection of string |
None. |
|
| sFromAddress | string |
None. |
|
| sFromName | string |
None. |
|
| sPathToAttachmentFile | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"sMessage": "sample string 1",
"sTitle": "sample string 2",
"sToAddress": [
"sample string 1",
"sample string 2"
],
"sCCAddress": [
"sample string 1",
"sample string 2"
],
"sBCCAddress": [
"sample string 1",
"sample string 2"
],
"sFromAddress": "sample string 3",
"sFromName": "sample string 4",
"sPathToAttachmentFile": "sample string 5"
}
application/xml, text/xml
Sample:
<Mail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Log">
<sBCCAddress xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</sBCCAddress>
<sCCAddress xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</sCCAddress>
<sFromAddress>sample string 3</sFromAddress>
<sFromName>sample string 4</sFromName>
<sMessage>sample string 1</sMessage>
<sPathToAttachmentFile>sample string 5</sPathToAttachmentFile>
<sTitle>sample string 2</sTitle>
<sToAddress xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</sToAddress>
</Mail>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
JSonGenericOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Response | boolean |
None. |
|
| Datas | boolean |
None. |
|
| ServiceName | string |
None. |
|
| Parameters | string |
None. |
|
| Status | ReturnErrorStatus |
None. |
|
| ErrorMessage | string |
None. |
|
| Error | jsonExceptionIES |
None. |
Response Formats
application/json, text/json
Sample:
{
"Response": true,
"Datas": true,
"ServiceName": "sample string 3",
"Parameters": "sample string 4",
"Status": 0,
"ErrorMessage": "sample string 5",
"Error": {
"Code": "sample string 1",
"Details": "sample string 2",
"Message": "sample string 3",
"Level": 1
}
}
application/xml, text/xml
Sample:
<JSonGenericOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ForSagaMiddleware">
<Error>
<Code>sample string 1</Code>
<Details>sample string 2</Details>
<Level>Info</Level>
<Message>sample string 3</Message>
</Error>
<ErrorMessage>sample string 5</ErrorMessage>
<Parameters>sample string 4</Parameters>
<ServiceName>sample string 3</ServiceName>
<Status>Error</Status>
<Datas>true</Datas>
<Response>true</Response>
</JSonGenericOfboolean>