POST api/Terceros/EnviarCorreo

Request Information

URI Parameters

None.

Body Parameters

EmailDatosRequest
NameDescriptionTypeAdditional information
Email

string

None.

subject

string

None.

body

string

None.

smtpServer

string

None.

smtpPort

string

None.

userPass

string

None.

fromMail

string

None.

attachement

Collection of byte

None.

attName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "subject": "sample string 2",
  "body": "sample string 3",
  "smtpServer": "sample string 4",
  "smtpPort": "sample string 5",
  "userPass": "sample string 6",
  "fromMail": "sample string 7",
  "attachement": "QEA=",
  "attName": "sample string 8"
}

application/xml, text/xml

Sample:
<EmailDatosRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SIMAPI.Requests">
  <Email>sample string 1</Email>
  <attName>sample string 8</attName>
  <attachement>QEA=</attachement>
  <body>sample string 3</body>
  <fromMail>sample string 7</fromMail>
  <smtpPort>sample string 5</smtpPort>
  <smtpServer>sample string 4</smtpServer>
  <subject>sample string 2</subject>
  <userPass>sample string 6</userPass>
</EmailDatosRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmailDatosRequest'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Message

string

None.

Result

Object

None.

Client

HttpClient

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "Message": "sample string 2",
  "Result": {},
  "Client": {
    "DefaultRequestHeaders": [],
    "BaseAddress": "http://webapihelppage1.com",
    "Timeout": "00:00:00.1234567",
    "MaxResponseContentBufferSize": 3
  }
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Net.Http.HttpMessageInvoker' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Net.Http.HttpMessageInvoker' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.