POST api/Enviar
Request Information
URI Parameters
None.
Body Parameters
EnviarEmailExternoRequestName | Description | Type | Additional information |
---|---|---|---|
Mensagem | EnviarEmailExternoMensagemRequest |
None. |
|
ProviderId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Mensagem": { "Destinatarios": [ "sample string 1", "sample string 2" ], "Assunto": "sample string 1", "CorpoEhHtml": true, "Corpo": "sample string 3", "TemplateId": "sample string 4", "McxTemplateId": 5, "TemplateData": {}, "Anexos": [ { "BytesArquivo": "QEA=", "NomeArquivo": "sample string 1", "ContentType": "sample string 2" }, { "BytesArquivo": "QEA=", "NomeArquivo": "sample string 1", "ContentType": "sample string 2" } ] }, "ProviderId": 1 }
application/xml, text/xml
Sample:
<EnviarEmailExternoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LMX.Email.ViewModel.EnviarEmailExterno"> <Mensagem> <Anexos> <EnviarEmailExternoMensagemAnexoRequest> <BytesArquivo>QEA=</BytesArquivo> <ContentType>sample string 2</ContentType> <NomeArquivo>sample string 1</NomeArquivo> </EnviarEmailExternoMensagemAnexoRequest> <EnviarEmailExternoMensagemAnexoRequest> <BytesArquivo>QEA=</BytesArquivo> <ContentType>sample string 2</ContentType> <NomeArquivo>sample string 1</NomeArquivo> </EnviarEmailExternoMensagemAnexoRequest> </Anexos> <Assunto>sample string 1</Assunto> <Corpo>sample string 3</Corpo> <CorpoEhHtml>true</CorpoEhHtml> <Destinatarios xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </Destinatarios> <McxTemplateId>5</McxTemplateId> <TemplateData /> <TemplateId>sample string 4</TemplateId> </Mensagem> <ProviderId>1</ProviderId> </EnviarEmailExternoRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |